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 #include "net/proxy/proxy_config_service_ios.h" | 5 #include "net/proxy/proxy_config_service_ios.h" |
6 | 6 |
7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
8 #include <CFNetwork/CFProxySupport.h> | 8 #include <CFNetwork/CFProxySupport.h> |
9 | 9 |
10 #include "base/message_loop.h" | |
11 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
12 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
| 12 #include "base/message_loop/message_loop.h" |
13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #include "net/proxy/proxy_config.h" | 14 #include "net/proxy/proxy_config.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const int kPollIntervalSec = 10; | 20 const int kPollIntervalSec = 10; |
21 | 21 |
22 // Utility function to pull out a boolean value from a dictionary and return it, | 22 // Utility function to pull out a boolean value from a dictionary and return it, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 ProxyConfigServiceIOS::ProxyConfigServiceIOS() | 101 ProxyConfigServiceIOS::ProxyConfigServiceIOS() |
102 : PollingProxyConfigService(base::TimeDelta::FromSeconds(kPollIntervalSec), | 102 : PollingProxyConfigService(base::TimeDelta::FromSeconds(kPollIntervalSec), |
103 GetCurrentProxyConfig) { | 103 GetCurrentProxyConfig) { |
104 } | 104 } |
105 | 105 |
106 ProxyConfigServiceIOS::~ProxyConfigServiceIOS() { | 106 ProxyConfigServiceIOS::~ProxyConfigServiceIOS() { |
107 } | 107 } |
108 | 108 |
109 } // namespace net | 109 } // namespace net |
OLD | NEW |