Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: net/proxy/proxy_config_service_ios.h

Issue 10911099: Minor fixes in proxy configuration on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: indentation Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/net/pref_proxy_config_tracker_impl.cc ('k') | net/proxy/proxy_config_service_ios.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698