| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 class HostMappingRules; | 82 class HostMappingRules; |
| 83 class HostResolver; | 83 class HostResolver; |
| 84 class HttpAuthHandlerFactory; | 84 class HttpAuthHandlerFactory; |
| 85 class HttpAuthPreferences; | 85 class HttpAuthPreferences; |
| 86 class LoggingNetworkChangeObserver; | 86 class LoggingNetworkChangeObserver; |
| 87 class NetworkQualityEstimator; | 87 class NetworkQualityEstimator; |
| 88 class ProxyConfigService; | 88 class ProxyConfigService; |
| 89 class RTTAndThroughputEstimatesObserver; | 89 class RTTAndThroughputEstimatesObserver; |
| 90 class SSLConfigService; | 90 class SSLConfigService; |
| 91 class URLRequestContext; | 91 class URLRequestContext; |
| 92 class URLRequestContextBuilderMojo; |
| 92 class URLRequestContextGetter; | 93 class URLRequestContextGetter; |
| 93 | 94 |
| 94 namespace ct { | 95 namespace ct { |
| 95 class STHObserver; | 96 class STHObserver; |
| 96 } | 97 } |
| 97 | 98 |
| 98 } // namespace net | 99 } // namespace net |
| 99 | 100 |
| 100 namespace net_log { | 101 namespace net_log { |
| 101 class ChromeNetLog; | 102 class ChromeNetLog; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // enabled. These features are controlled through | 226 // enabled. These features are controlled through |
| 226 // preferences/policy/commandline. | 227 // preferences/policy/commandline. |
| 227 // | 228 // |
| 228 // For a description of what these features are, and how they are | 229 // For a description of what these features are, and how they are |
| 229 // configured, see the comments in pref_names.cc for | 230 // configured, see the comments in pref_names.cc for |
| 230 // |kQuickCheckEnabled| and |kPacHttpsUrlStrippingEnabled | 231 // |kQuickCheckEnabled| and |kPacHttpsUrlStrippingEnabled |
| 231 // respectively. | 232 // respectively. |
| 232 bool WpadQuickCheckEnabled() const; | 233 bool WpadQuickCheckEnabled() const; |
| 233 bool PacHttpsUrlStrippingEnabled() const; | 234 bool PacHttpsUrlStrippingEnabled() const; |
| 234 | 235 |
| 236 // Configures |builder|'s ProxyService to use the specified |
| 237 // |proxy_config_service| and sets a number of proxy-related options based on |
| 238 // prefs, policies, and the command line. |
| 239 void SetUpProxyConfigService( |
| 240 net::URLRequestContextBuilderMojo* builder, |
| 241 std::unique_ptr<net::ProxyConfigService> proxy_config_service) const; |
| 242 |
| 235 private: | 243 private: |
| 236 friend class test::IOThreadPeer; | 244 friend class test::IOThreadPeer; |
| 237 friend class chrome::TestingIOThreadState; | 245 friend class chrome::TestingIOThreadState; |
| 238 | 246 |
| 239 // BrowserThreadDelegate implementation, runs on the IO thread. | 247 // BrowserThreadDelegate implementation, runs on the IO thread. |
| 240 // This handles initialization and destruction of state that must | 248 // This handles initialization and destruction of state that must |
| 241 // live on the IO thread. | 249 // live on the IO thread. |
| 242 void Init() override; | 250 void Init() override; |
| 243 void CleanUp() override; | 251 void CleanUp() override; |
| 244 | 252 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 bool http_09_on_non_default_ports_enabled_; | 366 bool http_09_on_non_default_ports_enabled_; |
| 359 | 367 |
| 360 const base::TimeTicks creation_time_; | 368 const base::TimeTicks creation_time_; |
| 361 | 369 |
| 362 base::WeakPtrFactory<IOThread> weak_factory_; | 370 base::WeakPtrFactory<IOThread> weak_factory_; |
| 363 | 371 |
| 364 DISALLOW_COPY_AND_ASSIGN(IOThread); | 372 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 365 }; | 373 }; |
| 366 | 374 |
| 367 #endif // CHROME_BROWSER_IO_THREAD_H_ | 375 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |