OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // string "" | 74 // string "" |
75 // | 75 // |
76 | 76 |
77 class ProxyResolutionServiceProvider | 77 class ProxyResolutionServiceProvider |
78 : public CrosDBusService::ServiceProviderInterface { | 78 : public CrosDBusService::ServiceProviderInterface { |
79 public: | 79 public: |
80 virtual ~ProxyResolutionServiceProvider(); | 80 virtual ~ProxyResolutionServiceProvider(); |
81 | 81 |
82 // CrosDBusService::ServiceProviderInterface override. | 82 // CrosDBusService::ServiceProviderInterface override. |
83 virtual void Start( | 83 virtual void Start( |
84 scoped_refptr<dbus::ExportedObject> exported_object) OVERRIDE; | 84 scoped_refptr<dbus::ExportedObject> exported_object) override; |
85 | 85 |
86 // Creates the instance. | 86 // Creates the instance. |
87 static ProxyResolutionServiceProvider* Create(); | 87 static ProxyResolutionServiceProvider* Create(); |
88 | 88 |
89 private: | 89 private: |
90 explicit ProxyResolutionServiceProvider(ProxyResolverInterface *resovler); | 90 explicit ProxyResolutionServiceProvider(ProxyResolverInterface *resovler); |
91 | 91 |
92 // Creates the instance for testing. Takes the ownership of |resovler| | 92 // Creates the instance for testing. Takes the ownership of |resovler| |
93 friend class ProxyResolutionServiceProviderTest; | 93 friend class ProxyResolutionServiceProviderTest; |
94 static ProxyResolutionServiceProvider* CreateForTesting( | 94 static ProxyResolutionServiceProvider* CreateForTesting( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 const std::string& signal_interface, | 141 const std::string& signal_interface, |
142 const std::string& signal_name, | 142 const std::string& signal_name, |
143 scoped_refptr<dbus::ExportedObject> exported_object) = 0; | 143 scoped_refptr<dbus::ExportedObject> exported_object) = 0; |
144 | 144 |
145 virtual ~ProxyResolverInterface(); | 145 virtual ~ProxyResolverInterface(); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace chromeos | 148 } // namespace chromeos |
149 | 149 |
150 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ | 150 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ |
OLD | NEW |