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 #ifndef CHROME_BROWSER_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 class HostMappingRules; | 79 class HostMappingRules; |
80 class HostResolver; | 80 class HostResolver; |
81 class HttpAuthHandlerFactory; | 81 class HttpAuthHandlerFactory; |
82 class HttpAuthPreferences; | 82 class HttpAuthPreferences; |
83 class LoggingNetworkChangeObserver; | 83 class LoggingNetworkChangeObserver; |
84 class NetworkQualityEstimator; | 84 class NetworkQualityEstimator; |
85 class ProxyConfigService; | 85 class ProxyConfigService; |
86 class RTTAndThroughputEstimatesObserver; | 86 class RTTAndThroughputEstimatesObserver; |
87 class SSLConfigService; | 87 class SSLConfigService; |
88 class URLRequestContext; | 88 class URLRequestContext; |
| 89 class URLRequestContextBuilderMojo; |
89 class URLRequestContextGetter; | 90 class URLRequestContextGetter; |
90 | 91 |
91 namespace ct { | 92 namespace ct { |
92 class STHObserver; | 93 class STHObserver; |
93 } | 94 } |
94 | 95 |
95 } // namespace net | 96 } // namespace net |
96 | 97 |
97 namespace net_log { | 98 namespace net_log { |
98 class ChromeNetLog; | 99 class ChromeNetLog; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // enabled. These features are controlled through | 217 // enabled. These features are controlled through |
217 // preferences/policy/commandline. | 218 // preferences/policy/commandline. |
218 // | 219 // |
219 // For a description of what these features are, and how they are | 220 // For a description of what these features are, and how they are |
220 // configured, see the comments in pref_names.cc for | 221 // configured, see the comments in pref_names.cc for |
221 // |kQuickCheckEnabled| and |kPacHttpsUrlStrippingEnabled | 222 // |kQuickCheckEnabled| and |kPacHttpsUrlStrippingEnabled |
222 // respectively. | 223 // respectively. |
223 bool WpadQuickCheckEnabled() const; | 224 bool WpadQuickCheckEnabled() const; |
224 bool PacHttpsUrlStrippingEnabled() const; | 225 bool PacHttpsUrlStrippingEnabled() const; |
225 | 226 |
| 227 // Configures |builder|'s ProxyService to use the specified |
| 228 // |proxy_config_service| and sets a number of proxy-related options based on |
| 229 // prefs, policies, and the command line. |
| 230 void SetUpProxyConfigService( |
| 231 net::URLRequestContextBuilderMojo* builder, |
| 232 std::unique_ptr<net::ProxyConfigService> proxy_config_service) const; |
| 233 |
226 private: | 234 private: |
227 friend class test::IOThreadPeer; | 235 friend class test::IOThreadPeer; |
228 friend class chrome::TestingIOThreadState; | 236 friend class chrome::TestingIOThreadState; |
229 | 237 |
230 // BrowserThreadDelegate implementation, runs on the IO thread. | 238 // BrowserThreadDelegate implementation, runs on the IO thread. |
231 // This handles initialization and destruction of state that must | 239 // This handles initialization and destruction of state that must |
232 // live on the IO thread. | 240 // live on the IO thread. |
233 void Init() override; | 241 void Init() override; |
234 void CleanUp() override; | 242 void CleanUp() override; |
235 | 243 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 bool http_09_on_non_default_ports_enabled_; | 352 bool http_09_on_non_default_ports_enabled_; |
345 | 353 |
346 const base::TimeTicks creation_time_; | 354 const base::TimeTicks creation_time_; |
347 | 355 |
348 base::WeakPtrFactory<IOThread> weak_factory_; | 356 base::WeakPtrFactory<IOThread> weak_factory_; |
349 | 357 |
350 DISALLOW_COPY_AND_ASSIGN(IOThread); | 358 DISALLOW_COPY_AND_ASSIGN(IOThread); |
351 }; | 359 }; |
352 | 360 |
353 #endif // CHROME_BROWSER_IO_THREAD_H_ | 361 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |