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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 | 46 |
47 namespace net { | 47 namespace net { |
48 class CertPolicyEnforcer; | 48 class CertPolicyEnforcer; |
49 class CertVerifier; | 49 class CertVerifier; |
50 class ChannelIDService; | 50 class ChannelIDService; |
51 class CookieStore; | 51 class CookieStore; |
52 class CTVerifier; | 52 class CTVerifier; |
53 class FtpTransactionFactory; | 53 class FtpTransactionFactory; |
54 class HostMappingRules; | 54 class HostMappingRules; |
55 class HostResolver; | 55 class HostResolver; |
56 class HttpAuthHandlerFactory; | 56 class HttpAuthHandlerRegistryFactory; |
57 class HttpNetworkSession; | 57 class HttpNetworkSession; |
58 class HttpServerProperties; | 58 class HttpServerProperties; |
59 class HttpTransactionFactory; | 59 class HttpTransactionFactory; |
60 class HttpUserAgentSettings; | 60 class HttpUserAgentSettings; |
61 class NetworkDelegate; | 61 class NetworkDelegate; |
62 class NetworkQualityEstimator; | 62 class NetworkQualityEstimator; |
63 class ProxyConfigService; | 63 class ProxyConfigService; |
64 class ProxyService; | 64 class ProxyService; |
65 class SSLConfigService; | 65 class SSLConfigService; |
66 class TransportSecurityState; | 66 class TransportSecurityState; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 scoped_ptr<net::CertVerifier> cert_verifier; | 130 scoped_ptr<net::CertVerifier> cert_verifier; |
131 // The ChannelIDService must outlive the HttpTransactionFactory. | 131 // The ChannelIDService must outlive the HttpTransactionFactory. |
132 scoped_ptr<net::ChannelIDService> system_channel_id_service; | 132 scoped_ptr<net::ChannelIDService> system_channel_id_service; |
133 // This TransportSecurityState doesn't load or save any state. It's only | 133 // This TransportSecurityState doesn't load or save any state. It's only |
134 // used to enforce pinning for system requests and will only use built-in | 134 // used to enforce pinning for system requests and will only use built-in |
135 // pins. | 135 // pins. |
136 scoped_ptr<net::TransportSecurityState> transport_security_state; | 136 scoped_ptr<net::TransportSecurityState> transport_security_state; |
137 scoped_ptr<net::CTVerifier> cert_transparency_verifier; | 137 scoped_ptr<net::CTVerifier> cert_transparency_verifier; |
138 scoped_ptr<net::CertPolicyEnforcer> cert_policy_enforcer; | 138 scoped_ptr<net::CertPolicyEnforcer> cert_policy_enforcer; |
139 scoped_refptr<net::SSLConfigService> ssl_config_service; | 139 scoped_refptr<net::SSLConfigService> ssl_config_service; |
140 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | 140 scoped_ptr<net::HttpAuthHandlerRegistryFactory> http_auth_handler_factory; |
141 scoped_ptr<net::HttpServerProperties> http_server_properties; | 141 scoped_ptr<net::HttpServerProperties> http_server_properties; |
142 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; | 142 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; |
143 scoped_ptr<net::HttpNetworkSession> | 143 scoped_ptr<net::HttpNetworkSession> |
144 proxy_script_fetcher_http_network_session; | 144 proxy_script_fetcher_http_network_session; |
145 scoped_ptr<net::HttpTransactionFactory> | 145 scoped_ptr<net::HttpTransactionFactory> |
146 proxy_script_fetcher_http_transaction_factory; | 146 proxy_script_fetcher_http_transaction_factory; |
147 scoped_ptr<net::FtpTransactionFactory> | 147 scoped_ptr<net::FtpTransactionFactory> |
148 proxy_script_fetcher_ftp_transaction_factory; | 148 proxy_script_fetcher_ftp_transaction_factory; |
149 scoped_ptr<net::URLRequestJobFactory> | 149 scoped_ptr<net::URLRequestJobFactory> |
150 proxy_script_fetcher_url_request_job_factory; | 150 proxy_script_fetcher_url_request_job_factory; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
293 // Global state must be initialized on the IO thread, then this | 293 // Global state must be initialized on the IO thread, then this |
294 // method must be invoked on the UI thread. | 294 // method must be invoked on the UI thread. |
295 void InitSystemRequestContext(); | 295 void InitSystemRequestContext(); |
296 | 296 |
297 // Lazy initialization of system request context for | 297 // Lazy initialization of system request context for |
298 // SystemURLRequestContextGetter. To be called on IO thread only | 298 // SystemURLRequestContextGetter. To be called on IO thread only |
299 // after global state has been initialized on the IO thread, and | 299 // after global state has been initialized on the IO thread, and |
300 // SystemRequestContext state has been initialized on the UI thread. | 300 // SystemRequestContext state has been initialized on the UI thread. |
301 void InitSystemRequestContextOnIOThread(); | 301 void InitSystemRequestContextOnIOThread(); |
302 | 302 |
303 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory( | 303 void CreateDefaultAuthHandlerFactory(); |
304 net::HostResolver* resolver); | |
305 | 304 |
306 // Returns an SSLConfigService instance. | 305 // Returns an SSLConfigService instance. |
307 net::SSLConfigService* GetSSLConfigService(); | 306 net::SSLConfigService* GetSSLConfigService(); |
308 | 307 |
309 void ChangedToOnTheRecordOnIOThread(); | 308 void ChangedToOnTheRecordOnIOThread(); |
310 | 309 |
311 void UpdateDnsClientEnabled(); | 310 void UpdateDnsClientEnabled(); |
311 void UpdateServerWhitelist(); | |
312 void UpdateDelegateWhitelist(); | |
313 void UpdateAndroidAuthNegotiateAccount(); | |
314 void UpdateNegotiateDisableCnameLookup(); | |
315 void UpdateNegotiateEnablePort(); | |
312 | 316 |
313 // Configures QUIC options based on the flags in |command_line| as | 317 // Configures QUIC options based on the flags in |command_line| as |
314 // well as the QUIC field trial group. | 318 // well as the QUIC field trial group. |
315 void ConfigureQuic(const base::CommandLine& command_line); | 319 void ConfigureQuic(const base::CommandLine& command_line); |
316 | 320 |
317 extensions::EventRouterForwarder* extension_event_router_forwarder() { | 321 extensions::EventRouterForwarder* extension_event_router_forwarder() { |
318 #if defined(ENABLE_EXTENSIONS) | 322 #if defined(ENABLE_EXTENSIONS) |
319 return extension_event_router_forwarder_; | 323 return extension_event_router_forwarder_; |
320 #else | 324 #else |
321 return NULL; | 325 return NULL; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
478 class LoggingNetworkChangeObserver; | 482 class LoggingNetworkChangeObserver; |
479 scoped_ptr<LoggingNetworkChangeObserver> network_change_observer_; | 483 scoped_ptr<LoggingNetworkChangeObserver> network_change_observer_; |
480 | 484 |
481 BooleanPrefMember system_enable_referrers_; | 485 BooleanPrefMember system_enable_referrers_; |
482 | 486 |
483 BooleanPrefMember dns_client_enabled_; | 487 BooleanPrefMember dns_client_enabled_; |
484 | 488 |
485 BooleanPrefMember quick_check_enabled_; | 489 BooleanPrefMember quick_check_enabled_; |
486 | 490 |
487 // Store HTTP Auth-related policies in this thread. | 491 // Store HTTP Auth-related policies in this thread. |
492 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the | |
asanka
2015/10/28 03:27:43
Could file a bug for this and add a reference here
aberent
2015/11/02 18:52:50
Done.
| |
493 // policy can change after startup. | |
488 std::string auth_schemes_; | 494 std::string auth_schemes_; |
489 bool negotiate_disable_cname_lookup_; | 495 BooleanPrefMember negotiate_disable_cname_lookup_; |
490 bool negotiate_enable_port_; | 496 BooleanPrefMember negotiate_enable_port_; |
491 std::string auth_server_whitelist_; | 497 StringPrefMember auth_server_whitelist_; |
492 std::string auth_delegate_whitelist_; | 498 StringPrefMember auth_delegate_whitelist_; |
499 | |
500 // No PrefMember for the GSSAPI library name, since changing it after startup | |
501 // requires unloading the existing GSSAPI library, which could cause all sorts | |
502 // of problems for, for example, active Negotiate transactions. | |
493 std::string gssapi_library_name_; | 503 std::string gssapi_library_name_; |
494 std::string auth_android_negotiate_account_type_; | 504 StringPrefMember auth_android_negotiate_account_type_; |
495 | 505 |
496 // This is an instance of the default SSLConfigServiceManager for the current | 506 // This is an instance of the default SSLConfigServiceManager for the current |
497 // platform and it gets SSL preferences from local_state object. | 507 // platform and it gets SSL preferences from local_state object. |
498 scoped_ptr<ssl_config::SSLConfigServiceManager> ssl_config_service_manager_; | 508 scoped_ptr<ssl_config::SSLConfigServiceManager> ssl_config_service_manager_; |
499 | 509 |
500 // These member variables are initialized by a task posted to the IO thread, | 510 // These member variables are initialized by a task posted to the IO thread, |
501 // which gets posted by calling certain member functions of IOThread. | 511 // which gets posted by calling certain member functions of IOThread. |
502 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; | 512 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; |
503 | 513 |
504 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 514 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
(...skipping 15 matching lines...) Expand all Loading... | |
520 external_data_use_observer_; | 530 external_data_use_observer_; |
521 | 531 |
522 const base::TimeTicks creation_time_; | 532 const base::TimeTicks creation_time_; |
523 | 533 |
524 base::WeakPtrFactory<IOThread> weak_factory_; | 534 base::WeakPtrFactory<IOThread> weak_factory_; |
525 | 535 |
526 DISALLOW_COPY_AND_ASSIGN(IOThread); | 536 DISALLOW_COPY_AND_ASSIGN(IOThread); |
527 }; | 537 }; |
528 | 538 |
529 #endif // CHROME_BROWSER_IO_THREAD_H_ | 539 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |