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 HttpAuthHandlerRegistryFactory; |
82 class HttpAuthPreferences; | 81 class HttpAuthPreferences; |
83 class LoggingNetworkChangeObserver; | 82 class LoggingNetworkChangeObserver; |
84 class NetworkQualityEstimator; | 83 class NetworkQualityEstimator; |
85 class ProxyConfigService; | 84 class ProxyConfigService; |
86 class SSLConfigService; | 85 class SSLConfigService; |
87 class URLRequestContext; | 86 class URLRequestContext; |
88 class URLRequestContextGetter; | 87 class URLRequestContextGetter; |
89 class URLRequestContextStorage; | 88 class URLRequestContextStorage; |
90 | 89 |
91 namespace ct { | 90 namespace ct { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 std::unique_ptr<data_use_measurement::ChromeDataUseAscriber> | 130 std::unique_ptr<data_use_measurement::ChromeDataUseAscriber> |
132 data_use_ascriber; | 131 data_use_ascriber; |
133 // Global aggregator of data use. It must outlive the | 132 // Global aggregator of data use. It must outlive the |
134 // |system_network_delegate|. | 133 // |system_network_delegate|. |
135 std::unique_ptr<data_usage::DataUseAggregator> data_use_aggregator; | 134 std::unique_ptr<data_usage::DataUseAggregator> data_use_aggregator; |
136 #if defined(OS_ANDROID) | 135 #if defined(OS_ANDROID) |
137 // An external observer of data use. | 136 // An external observer of data use. |
138 std::unique_ptr<chrome::android::ExternalDataUseObserver> | 137 std::unique_ptr<chrome::android::ExternalDataUseObserver> |
139 external_data_use_observer; | 138 external_data_use_observer; |
140 #endif // defined(OS_ANDROID) | 139 #endif // defined(OS_ANDROID) |
141 std::unique_ptr<net::HostResolver> host_resolver; | |
142 std::unique_ptr<net::CertVerifier> cert_verifier; | |
143 std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs; | 140 std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs; |
144 std::unique_ptr<net::CTVerifier> cert_transparency_verifier; | |
145 std::unique_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | |
146 std::unique_ptr<net::HttpAuthPreferences> http_auth_preferences; | 141 std::unique_ptr<net::HttpAuthPreferences> http_auth_preferences; |
147 std::unique_ptr<net::URLRequestContextStorage> | 142 std::unique_ptr<net::URLRequestContextStorage> |
148 system_request_context_storage; | 143 system_request_context_storage; |
149 std::unique_ptr<net::URLRequestContext> system_request_context; | 144 std::unique_ptr<net::URLRequestContext> system_request_context; |
150 SystemRequestContextLeakChecker system_request_context_leak_checker; | 145 SystemRequestContextLeakChecker system_request_context_leak_checker; |
151 #if BUILDFLAG(ENABLE_EXTENSIONS) | 146 #if BUILDFLAG(ENABLE_EXTENSIONS) |
152 scoped_refptr<extensions::EventRouterForwarder> | 147 scoped_refptr<extensions::EventRouterForwarder> |
153 extension_event_router_forwarder; | 148 extension_event_router_forwarder; |
154 #endif | 149 #endif |
155 std::unique_ptr<net::HostMappingRules> host_mapping_rules; | 150 std::unique_ptr<net::HostMappingRules> host_mapping_rules; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 private: | 228 private: |
234 friend class test::IOThreadPeer; | 229 friend class test::IOThreadPeer; |
235 friend class chrome::TestingIOThreadState; | 230 friend class chrome::TestingIOThreadState; |
236 | 231 |
237 // BrowserThreadDelegate implementation, runs on the IO thread. | 232 // BrowserThreadDelegate implementation, runs on the IO thread. |
238 // This handles initialization and destruction of state that must | 233 // This handles initialization and destruction of state that must |
239 // live on the IO thread. | 234 // live on the IO thread. |
240 void Init() override; | 235 void Init() override; |
241 void CleanUp() override; | 236 void CleanUp() override; |
242 | 237 |
243 void CreateDefaultAuthHandlerFactory(); | 238 std::unique_ptr<net::HttpAuthHandlerRegistryFactory> |
Randy Smith (Not in Mondays)
2017/06/07 19:28:17
Why change to the subclass type instead of just st
mmenke
2017/06/07 21:06:03
Just because an "HttpAuthHandlerRegistryFactory" i
| |
239 CreateDefaultAuthHandlerFactory(); | |
244 | 240 |
245 // Returns an SSLConfigService instance. | 241 // Returns an SSLConfigService instance. |
246 net::SSLConfigService* GetSSLConfigService(); | 242 net::SSLConfigService* GetSSLConfigService(); |
247 | 243 |
248 void ChangedToOnTheRecordOnIOThread(); | 244 void ChangedToOnTheRecordOnIOThread(); |
249 | 245 |
250 void UpdateDnsClientEnabled(); | 246 void UpdateDnsClientEnabled(); |
251 void UpdateServerWhitelist(); | 247 void UpdateServerWhitelist(); |
252 void UpdateDelegateWhitelist(); | 248 void UpdateDelegateWhitelist(); |
253 void UpdateAndroidAuthNegotiateAccountType(); | 249 void UpdateAndroidAuthNegotiateAccountType(); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
350 bool http_09_on_non_default_ports_enabled_; | 346 bool http_09_on_non_default_ports_enabled_; |
351 | 347 |
352 const base::TimeTicks creation_time_; | 348 const base::TimeTicks creation_time_; |
353 | 349 |
354 base::WeakPtrFactory<IOThread> weak_factory_; | 350 base::WeakPtrFactory<IOThread> weak_factory_; |
355 | 351 |
356 DISALLOW_COPY_AND_ASSIGN(IOThread); | 352 DISALLOW_COPY_AND_ASSIGN(IOThread); |
357 }; | 353 }; |
358 | 354 |
359 #endif // CHROME_BROWSER_IO_THREAD_H_ | 355 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |