Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ | |
| 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ | |
| 7 | |
| 8 #include "net/proxy/polling_proxy_config_service.h" | |
| 9 | |
| 10 namespace base { | |
| 11 class SingleThreadTaskRunner; | |
| 12 } // namespace base | |
| 13 | |
| 14 namespace net { | |
| 15 | |
| 16 class ProxyConfigServiceIOS : public PollingProxyConfigService { | |
| 17 public: | |
| 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 | |
|
Ryan Sleevi
2012/09/05 02:59:21
drive by comment nit: willchan has pointed out in
| |
| 20 // (however it may be constructed from a different thread). | |
| 21 explicit ProxyConfigServiceIOS( | |
| 22 base::SingleThreadTaskRunner* io_thread_task_runner); | |
| 23 virtual ~ProxyConfigServiceIOS(); | |
| 24 | |
| 25 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); | |
| 30 }; | |
| 31 | |
| 32 } // namespace net | |
| 33 | |
| 34 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ | |
| OLD | NEW |