| 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 { | |
| 11 class SingleThreadTaskRunner; | |
| 12 } // namespace base | |
| 13 | |
| 14 namespace net { | 10 namespace net { |
| 15 | 11 |
| 16 class ProxyConfigServiceIOS : public PollingProxyConfigService { | 12 class ProxyConfigServiceIOS : public PollingProxyConfigService { |
| 17 public: | 13 public: |
| 18 // Constructs a ProxyConfigService that watches the iOS system proxy settings. | 14 // Constructs a ProxyConfigService that watches the iOS system proxy settings. |
| 19 // This instance is expected to be operated and deleted on the IO thread | 15 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(); | 16 virtual ~ProxyConfigServiceIOS(); |
| 24 | 17 |
| 25 private: | 18 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); | 19 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceIOS); |
| 30 }; | 20 }; |
| 31 | 21 |
| 32 } // namespace net | 22 } // namespace net |
| 33 | 23 |
| 34 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ | 24 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ |
| OLD | NEW |