| 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" | 10 #include "base/message_loop.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Proxy bypass boolean is not supported. | 91 // Proxy bypass boolean is not supported. |
| 92 // The kCFNetworkProxiesExcludeSimpleHostnames key is not available on iOS. | 92 // The kCFNetworkProxiesExcludeSimpleHostnames key is not available on iOS. |
| 93 | 93 |
| 94 // Source | 94 // Source |
| 95 config->set_source(PROXY_CONFIG_SOURCE_SYSTEM); | 95 config->set_source(PROXY_CONFIG_SOURCE_SYSTEM); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace | 98 } // namespace |
| 99 | 99 |
| 100 ProxyConfigServiceIOS::ProxyConfigServiceIOS( | 100 ProxyConfigServiceIOS::ProxyConfigServiceIOS() |
| 101 base::SingleThreadTaskRunner* io_thread_task_runner) | 101 : PollingProxyConfigService(base::TimeDelta::FromSeconds(kPollIntervalSec), |
| 102 : PollingProxyConfigService( | 102 GetCurrentProxyConfig) { |
| 103 base::TimeDelta::FromSeconds(kPollIntervalSec), | |
| 104 GetCurrentProxyConfig), | |
| 105 io_thread_task_runner_(io_thread_task_runner) { | |
| 106 DCHECK(io_thread_task_runner_); | |
| 107 } | 103 } |
| 108 | 104 |
| 109 ProxyConfigServiceIOS::~ProxyConfigServiceIOS() { | 105 ProxyConfigServiceIOS::~ProxyConfigServiceIOS() { |
| 110 DCHECK(io_thread_task_runner_->BelongsToCurrentThread()); | |
| 111 } | 106 } |
| 112 | 107 |
| 113 } // namespace net | 108 } // namespace net |
| OLD | NEW |