1// Copyright (c) 2010 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_CHROMEOS_CROS_LIBCROS_SERVICE_LIBRARY_H_ 6#define CHROME_BROWSER_CHROMEOS_CROS_LIBCROS_SERVICE_LIBRARY_H_ 7#pragma once 8 9namespace net{ 10class ProxyService; 11}; 12 13namespace chromeos { 14 15class LibCrosServiceLibrary { 16 public: 17 virtual ~LibCrosServiceLibrary() {} 18 19 // Starts dbus service for LibCrosService. 20 virtual void StartService() = 0; 21 22 // Factory function, creates a new instance and returns ownership. 23 // For normal usage, access the singleton via CrosLibrary::Get(). 24 static LibCrosServiceLibrary* GetImpl(bool stub); 25}; 26 27} // namespace chromeos 28 29#endif // CHROME_BROWSER_CHROMEOS_CROS_LIBCROS_SERVICE_LIBRARY_H_ 30