| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_CROS_DBUS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_CROS_DBUS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_CROS_DBUS_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_CROS_DBUS_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // OS. The service will be registered as follows: | 23 // OS. The service will be registered as follows: |
| 24 // | 24 // |
| 25 // Service name: org.chromium.LibCrosService (kLibCrosServiceName) | 25 // Service name: org.chromium.LibCrosService (kLibCrosServiceName) |
| 26 // Object path: chromium/LibCrosService (kLibCrosServicePath) | 26 // Object path: chromium/LibCrosService (kLibCrosServicePath) |
| 27 // | 27 // |
| 28 // For historical reasons, the rather irrelevant name "LibCrosService" is | 28 // For historical reasons, the rather irrelevant name "LibCrosService" is |
| 29 // used in the D-Bus constants such as the service name. | 29 // used in the D-Bus constants such as the service name. |
| 30 // | 30 // |
| 31 // CrosDBusService exports D-Bus methods through service provider classes | 31 // CrosDBusService exports D-Bus methods through service provider classes |
| 32 // that implement CrosDBusService::ServiceProviderInterface. | 32 // that implement CrosDBusService::ServiceProviderInterface. |
| 33 // | |
| 34 class ProxyResolutionService; | |
| 35 | 33 |
| 36 class CrosDBusService { | 34 class CrosDBusService { |
| 37 public: | 35 public: |
| 38 // CrosDBusService consists of service providers that implement this | 36 // CrosDBusService consists of service providers that implement this |
| 39 // interface. | 37 // interface. |
| 40 class ServiceProviderInterface { | 38 class ServiceProviderInterface { |
| 41 public: | 39 public: |
| 42 // Starts the service provider. |exported_object| is used to export | 40 // Starts the service provider. |exported_object| is used to export |
| 43 // D-Bus methods. | 41 // D-Bus methods. |
| 44 virtual void Start( | 42 virtual void Start( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 60 // |proxy_resolution_service|. | 58 // |proxy_resolution_service|. |
| 61 friend class CrosDBusServiceTest; | 59 friend class CrosDBusServiceTest; |
| 62 static CrosDBusService* CreateForTesting( | 60 static CrosDBusService* CreateForTesting( |
| 63 dbus::Bus* bus, | 61 dbus::Bus* bus, |
| 64 ServiceProviderInterface* proxy_resolution_service); | 62 ServiceProviderInterface* proxy_resolution_service); |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace | 65 } // namespace |
| 68 | 66 |
| 69 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CROS_DBUS_SERVICE_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CROS_DBUS_SERVICE_H_ |
| OLD | NEW |