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

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

Issue 10911099: Minor fixes in proxy configuration on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review comments" 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
« no previous file with comments | « net/proxy/proxy_config_service_ios.h ('k') | net/proxy/proxy_config_service_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_ios.h ('k') | net/proxy/proxy_config_service_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698