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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // Global state must be initialized on the IO thread, then this | 299 // Global state must be initialized on the IO thread, then this |
300 // method must be invoked on the UI thread. | 300 // method must be invoked on the UI thread. |
301 void InitSystemRequestContext(); | 301 void InitSystemRequestContext(); |
302 | 302 |
303 // Lazy initialization of system request context for | 303 // Lazy initialization of system request context for |
304 // SystemURLRequestContextGetter. To be called on IO thread only | 304 // SystemURLRequestContextGetter. To be called on IO thread only |
305 // after global state has been initialized on the IO thread, and | 305 // after global state has been initialized on the IO thread, and |
306 // SystemRequestContext state has been initialized on the UI thread. | 306 // SystemRequestContext state has been initialized on the UI thread. |
307 void InitSystemRequestContextOnIOThread(); | 307 void InitSystemRequestContextOnIOThread(); |
308 | 308 |
309 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory( | 309 void CreateDefaultAuthHandlerFactory(); |
310 net::HostResolver* resolver); | |
311 | 310 |
312 // Returns an SSLConfigService instance. | 311 // Returns an SSLConfigService instance. |
313 net::SSLConfigService* GetSSLConfigService(); | 312 net::SSLConfigService* GetSSLConfigService(); |
314 | 313 |
315 void ChangedToOnTheRecordOnIOThread(); | 314 void ChangedToOnTheRecordOnIOThread(); |
316 | 315 |
317 void UpdateDnsClientEnabled(); | 316 void UpdateDnsClientEnabled(); |
| 317 void UpdateServerWhitelist(); |
| 318 void UpdateDelegateWhitelist(); |
| 319 void UpdateAndroidAuthNegotiateAccountType(); |
| 320 void UpdateNegotiateDisableCnameLookup(); |
| 321 void UpdateNegotiateEnablePort(); |
318 | 322 |
319 // Configures QUIC options based on the flags in |command_line| as | 323 // Configures QUIC options based on the flags in |command_line| as |
320 // well as the QUIC field trial group. | 324 // well as the QUIC field trial group. |
321 void ConfigureQuic(const base::CommandLine& command_line); | 325 void ConfigureQuic(const base::CommandLine& command_line); |
322 | 326 |
323 extensions::EventRouterForwarder* extension_event_router_forwarder() { | 327 extensions::EventRouterForwarder* extension_event_router_forwarder() { |
324 #if defined(ENABLE_EXTENSIONS) | 328 #if defined(ENABLE_EXTENSIONS) |
325 return extension_event_router_forwarder_; | 329 return extension_event_router_forwarder_; |
326 #else | 330 #else |
327 return NULL; | 331 return NULL; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 class LoggingNetworkChangeObserver; | 488 class LoggingNetworkChangeObserver; |
485 scoped_ptr<LoggingNetworkChangeObserver> network_change_observer_; | 489 scoped_ptr<LoggingNetworkChangeObserver> network_change_observer_; |
486 | 490 |
487 BooleanPrefMember system_enable_referrers_; | 491 BooleanPrefMember system_enable_referrers_; |
488 | 492 |
489 BooleanPrefMember dns_client_enabled_; | 493 BooleanPrefMember dns_client_enabled_; |
490 | 494 |
491 BooleanPrefMember quick_check_enabled_; | 495 BooleanPrefMember quick_check_enabled_; |
492 | 496 |
493 // Store HTTP Auth-related policies in this thread. | 497 // Store HTTP Auth-related policies in this thread. |
| 498 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the |
| 499 // policy can change after startup (https://crbug/549273). |
494 std::string auth_schemes_; | 500 std::string auth_schemes_; |
495 bool negotiate_disable_cname_lookup_; | 501 BooleanPrefMember negotiate_disable_cname_lookup_; |
496 bool negotiate_enable_port_; | 502 BooleanPrefMember negotiate_enable_port_; |
497 std::string auth_server_whitelist_; | 503 StringPrefMember auth_server_whitelist_; |
498 std::string auth_delegate_whitelist_; | 504 StringPrefMember auth_delegate_whitelist_; |
| 505 |
| 506 // No PrefMember for the GSSAPI library name, since changing it after startup |
| 507 // requires unloading the existing GSSAPI library, which could cause all sorts |
| 508 // of problems for, for example, active Negotiate transactions. |
499 std::string gssapi_library_name_; | 509 std::string gssapi_library_name_; |
500 std::string auth_android_negotiate_account_type_; | 510 StringPrefMember auth_android_negotiate_account_type_; |
501 | 511 |
502 // This is an instance of the default SSLConfigServiceManager for the current | 512 // This is an instance of the default SSLConfigServiceManager for the current |
503 // platform and it gets SSL preferences from local_state object. | 513 // platform and it gets SSL preferences from local_state object. |
504 scoped_ptr<ssl_config::SSLConfigServiceManager> ssl_config_service_manager_; | 514 scoped_ptr<ssl_config::SSLConfigServiceManager> ssl_config_service_manager_; |
505 | 515 |
506 // These member variables are initialized by a task posted to the IO thread, | 516 // These member variables are initialized by a task posted to the IO thread, |
507 // which gets posted by calling certain member functions of IOThread. | 517 // which gets posted by calling certain member functions of IOThread. |
508 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; | 518 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; |
509 | 519 |
510 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 520 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
(...skipping 15 matching lines...) Expand all Loading... |
526 external_data_use_observer_; | 536 external_data_use_observer_; |
527 | 537 |
528 const base::TimeTicks creation_time_; | 538 const base::TimeTicks creation_time_; |
529 | 539 |
530 base::WeakPtrFactory<IOThread> weak_factory_; | 540 base::WeakPtrFactory<IOThread> weak_factory_; |
531 | 541 |
532 DISALLOW_COPY_AND_ASSIGN(IOThread); | 542 DISALLOW_COPY_AND_ASSIGN(IOThread); |
533 }; | 543 }; |
534 | 544 |
535 #endif // CHROME_BROWSER_IO_THREAD_H_ | 545 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |