| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 namespace data_use_measurement { | 69 namespace data_use_measurement { |
| 70 class ChromeDataUseAscriber; | 70 class ChromeDataUseAscriber; |
| 71 } | 71 } |
| 72 | 72 |
| 73 namespace extensions { | 73 namespace extensions { |
| 74 class EventRouterForwarder; | 74 class EventRouterForwarder; |
| 75 } | 75 } |
| 76 | 76 |
| 77 namespace net { | 77 namespace net { |
| 78 class CertVerifier; | |
| 79 class CTLogVerifier; | 78 class CTLogVerifier; |
| 80 class HostMappingRules; | 79 class HostMappingRules; |
| 81 class HostResolver; | 80 class HostResolver; |
| 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 URLRequestContextGetter; | 89 class URLRequestContextGetter; |
| 90 class URLRequestContextStorage; | 90 class URLRequestContextStorage; |
| 91 | 91 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 std::unique_ptr<data_use_measurement::ChromeDataUseAscriber> | 132 std::unique_ptr<data_use_measurement::ChromeDataUseAscriber> |
| 133 data_use_ascriber; | 133 data_use_ascriber; |
| 134 // Global aggregator of data use. It must outlive the | 134 // Global aggregator of data use. It must outlive the |
| 135 // |system_network_delegate|. | 135 // |system_network_delegate|. |
| 136 std::unique_ptr<data_usage::DataUseAggregator> data_use_aggregator; | 136 std::unique_ptr<data_usage::DataUseAggregator> data_use_aggregator; |
| 137 #if defined(OS_ANDROID) | 137 #if defined(OS_ANDROID) |
| 138 // An external observer of data use. | 138 // An external observer of data use. |
| 139 std::unique_ptr<chrome::android::ExternalDataUseObserver> | 139 std::unique_ptr<chrome::android::ExternalDataUseObserver> |
| 140 external_data_use_observer; | 140 external_data_use_observer; |
| 141 #endif // defined(OS_ANDROID) | 141 #endif // defined(OS_ANDROID) |
| 142 std::unique_ptr<net::HostResolver> host_resolver; | |
| 143 std::unique_ptr<net::CertVerifier> cert_verifier; | |
| 144 std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs; | 142 std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs; |
| 145 std::unique_ptr<net::CTVerifier> cert_transparency_verifier; | |
| 146 std::unique_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | |
| 147 std::unique_ptr<net::HttpAuthPreferences> http_auth_preferences; | 143 std::unique_ptr<net::HttpAuthPreferences> http_auth_preferences; |
| 148 std::unique_ptr<net::URLRequestContextStorage> | 144 std::unique_ptr<net::URLRequestContextStorage> |
| 149 system_request_context_storage; | 145 system_request_context_storage; |
| 150 std::unique_ptr<net::URLRequestContext> system_request_context; | 146 std::unique_ptr<net::URLRequestContext> system_request_context; |
| 151 SystemRequestContextLeakChecker system_request_context_leak_checker; | 147 SystemRequestContextLeakChecker system_request_context_leak_checker; |
| 152 #if BUILDFLAG(ENABLE_EXTENSIONS) | 148 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 153 scoped_refptr<extensions::EventRouterForwarder> | 149 scoped_refptr<extensions::EventRouterForwarder> |
| 154 extension_event_router_forwarder; | 150 extension_event_router_forwarder; |
| 155 #endif | 151 #endif |
| 156 std::unique_ptr<net::HostMappingRules> host_mapping_rules; | 152 std::unique_ptr<net::HostMappingRules> host_mapping_rules; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 private: | 229 private: |
| 234 friend class test::IOThreadPeer; | 230 friend class test::IOThreadPeer; |
| 235 friend class chrome::TestingIOThreadState; | 231 friend class chrome::TestingIOThreadState; |
| 236 | 232 |
| 237 // BrowserThreadDelegate implementation, runs on the IO thread. | 233 // BrowserThreadDelegate implementation, runs on the IO thread. |
| 238 // This handles initialization and destruction of state that must | 234 // This handles initialization and destruction of state that must |
| 239 // live on the IO thread. | 235 // live on the IO thread. |
| 240 void Init() override; | 236 void Init() override; |
| 241 void CleanUp() override; | 237 void CleanUp() override; |
| 242 | 238 |
| 243 void CreateDefaultAuthHandlerFactory(); | 239 std::unique_ptr<net::HttpAuthHandlerFactory> CreateDefaultAuthHandlerFactory( |
| 240 net::HostResolver* host_resolver); |
| 244 | 241 |
| 245 // Returns an SSLConfigService instance. | 242 // Returns an SSLConfigService instance. |
| 246 net::SSLConfigService* GetSSLConfigService(); | 243 net::SSLConfigService* GetSSLConfigService(); |
| 247 | 244 |
| 248 void ChangedToOnTheRecordOnIOThread(); | 245 void ChangedToOnTheRecordOnIOThread(); |
| 249 | 246 |
| 250 void UpdateDnsClientEnabled(); | 247 void UpdateDnsClientEnabled(); |
| 251 void UpdateServerWhitelist(); | 248 void UpdateServerWhitelist(); |
| 252 void UpdateDelegateWhitelist(); | 249 void UpdateDelegateWhitelist(); |
| 253 void UpdateAndroidAuthNegotiateAccountType(); | 250 void UpdateAndroidAuthNegotiateAccountType(); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 bool http_09_on_non_default_ports_enabled_; | 347 bool http_09_on_non_default_ports_enabled_; |
| 351 | 348 |
| 352 const base::TimeTicks creation_time_; | 349 const base::TimeTicks creation_time_; |
| 353 | 350 |
| 354 base::WeakPtrFactory<IOThread> weak_factory_; | 351 base::WeakPtrFactory<IOThread> weak_factory_; |
| 355 | 352 |
| 356 DISALLOW_COPY_AND_ASSIGN(IOThread); | 353 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 357 }; | 354 }; |
| 358 | 355 |
| 359 #endif // CHROME_BROWSER_IO_THREAD_H_ | 356 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |