Chromium Code Reviews| 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 NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ | 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ |
| 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ | 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ |
| 7 | 7 |
| 8 #include "net/proxy/polling_proxy_config_service.h" | 8 #include "net/proxy/polling_proxy_config_service.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class SingleThreadTaskRunner; | 11 class SingleThreadTaskRunner; |
|
eroman
2012/09/05 18:44:01
can remove this now
| |
| 12 } // namespace base | 12 } // namespace base |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 class ProxyConfigServiceIOS : public PollingProxyConfigService { | 16 class ProxyConfigServiceIOS : public PollingProxyConfigService { |
| 17 public: | 17 public: |
| 18 // Constructs a ProxyConfigService that watches the iOS system proxy settings. | 18 // Constructs a ProxyConfigService that watches the iOS system proxy settings. |
| 19 // This instance is expected to be operated and deleted on the IO thread | 19 explicit ProxyConfigServiceIOS(); |
| 20 // (however it may be constructed from a different thread). | |
| 21 explicit ProxyConfigServiceIOS( | |
| 22 base::SingleThreadTaskRunner* io_thread_task_runner); | |
| 23 virtual ~ProxyConfigServiceIOS(); | 20 virtual ~ProxyConfigServiceIOS(); |
| 24 | 21 |
| 25 private: | 22 private: |
| 26 // The thread that we expect to be operated on. | |
| 27 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceIOS); | 23 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceIOS); |
| 30 }; | 24 }; |
| 31 | 25 |
| 32 } // namespace net | 26 } // namespace net |
| 33 | 27 |
| 34 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ | 28 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ |
| OLD | NEW |