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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "base/compiler_specific.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
15 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
16 #include "chrome/browser/chromeos/dbus/cros_dbus_service.h" | 17 #include "chrome/browser/chromeos/dbus/cros_dbus_service.h" |
17 | 18 |
18 namespace dbus { | 19 namespace dbus { |
19 class ExportedObject; | 20 class ExportedObject; |
20 class MethodCall; | 21 class MethodCall; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // string "PROXY proxy.example.com:8080" | 74 // string "PROXY proxy.example.com:8080" |
74 // string "" | 75 // string "" |
75 // | 76 // |
76 | 77 |
77 class ProxyResolutionServiceProvider | 78 class ProxyResolutionServiceProvider |
78 : public CrosDBusService::ServiceProviderInterface { | 79 : public CrosDBusService::ServiceProviderInterface { |
79 public: | 80 public: |
80 virtual ~ProxyResolutionServiceProvider(); | 81 virtual ~ProxyResolutionServiceProvider(); |
81 | 82 |
82 // CrosDBusService::ServiceProviderInterface override. | 83 // CrosDBusService::ServiceProviderInterface override. |
83 virtual void Start(scoped_refptr<dbus::ExportedObject> exported_object); | 84 virtual void Start( |
| 85 scoped_refptr<dbus::ExportedObject> exported_object) OVERRIDE; |
84 | 86 |
85 // Creates the instance. | 87 // Creates the instance. |
86 static ProxyResolutionServiceProvider* Create(); | 88 static ProxyResolutionServiceProvider* Create(); |
87 | 89 |
88 private: | 90 private: |
89 explicit ProxyResolutionServiceProvider(ProxyResolverInterface *resovler); | 91 explicit ProxyResolutionServiceProvider(ProxyResolverInterface *resovler); |
90 | 92 |
91 // Creates the instance for testing. Takes the ownership of |resovler| | 93 // Creates the instance for testing. Takes the ownership of |resovler| |
92 friend class ProxyResolutionServiceProviderTest; | 94 friend class ProxyResolutionServiceProviderTest; |
93 static ProxyResolutionServiceProvider* CreateForTesting( | 95 static ProxyResolutionServiceProvider* CreateForTesting( |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 const std::string& signal_interface, | 140 const std::string& signal_interface, |
139 const std::string& signal_name, | 141 const std::string& signal_name, |
140 scoped_refptr<dbus::ExportedObject> exported_object) = 0; | 142 scoped_refptr<dbus::ExportedObject> exported_object) = 0; |
141 | 143 |
142 virtual ~ProxyResolverInterface(); | 144 virtual ~ProxyResolverInterface(); |
143 }; | 145 }; |
144 | 146 |
145 } // namespace chromeos | 147 } // namespace chromeos |
146 | 148 |
147 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ | 149 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PROXY_RESOLUTION_SERVICE_PROVIDER_H_ |
OLD | NEW |