| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 namespace chrome_browser_net { | 38 namespace chrome_browser_net { |
| 39 class DnsProbeService; | 39 class DnsProbeService; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace extensions { | 42 namespace extensions { |
| 43 class EventRouterForwarder; | 43 class EventRouterForwarder; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace net { | 46 namespace net { |
| 47 class CertVerifier; | 47 class CertVerifier; |
| 48 class ChannelIDService; |
| 48 class CookieStore; | 49 class CookieStore; |
| 49 class CTVerifier; | 50 class CTVerifier; |
| 50 class FtpTransactionFactory; | 51 class FtpTransactionFactory; |
| 51 class HostMappingRules; | 52 class HostMappingRules; |
| 52 class HostResolver; | 53 class HostResolver; |
| 53 class HttpAuthHandlerFactory; | 54 class HttpAuthHandlerFactory; |
| 54 class HttpServerProperties; | 55 class HttpServerProperties; |
| 55 class HttpTransactionFactory; | 56 class HttpTransactionFactory; |
| 56 class HttpUserAgentSettings; | 57 class HttpUserAgentSettings; |
| 57 class NetworkDelegate; | 58 class NetworkDelegate; |
| 58 class ServerBoundCertService; | |
| 59 class ProxyConfigService; | 59 class ProxyConfigService; |
| 60 class ProxyService; | 60 class ProxyService; |
| 61 class SSLConfigService; | 61 class SSLConfigService; |
| 62 class TransportSecurityState; | 62 class TransportSecurityState; |
| 63 class URLRequestContext; | 63 class URLRequestContext; |
| 64 class URLRequestContextGetter; | 64 class URLRequestContextGetter; |
| 65 class URLRequestJobFactory; | 65 class URLRequestJobFactory; |
| 66 class URLRequestThrottlerManager; | 66 class URLRequestThrottlerManager; |
| 67 class URLSecurityManager; | 67 class URLSecurityManager; |
| 68 } // namespace net | 68 } // namespace net |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 Globals* const globals_; | 113 Globals* const globals_; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 Globals(); | 116 Globals(); |
| 117 ~Globals(); | 117 ~Globals(); |
| 118 | 118 |
| 119 // The "system" NetworkDelegate, used for Profile-agnostic network events. | 119 // The "system" NetworkDelegate, used for Profile-agnostic network events. |
| 120 scoped_ptr<net::NetworkDelegate> system_network_delegate; | 120 scoped_ptr<net::NetworkDelegate> system_network_delegate; |
| 121 scoped_ptr<net::HostResolver> host_resolver; | 121 scoped_ptr<net::HostResolver> host_resolver; |
| 122 scoped_ptr<net::CertVerifier> cert_verifier; | 122 scoped_ptr<net::CertVerifier> cert_verifier; |
| 123 // The ServerBoundCertService must outlive the HttpTransactionFactory. | 123 // The ChannelIDService must outlive the HttpTransactionFactory. |
| 124 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service; | 124 scoped_ptr<net::ChannelIDService> system_channel_id_service; |
| 125 // This TransportSecurityState doesn't load or save any state. It's only | 125 // This TransportSecurityState doesn't load or save any state. It's only |
| 126 // used to enforce pinning for system requests and will only use built-in | 126 // used to enforce pinning for system requests and will only use built-in |
| 127 // pins. | 127 // pins. |
| 128 scoped_ptr<net::TransportSecurityState> transport_security_state; | 128 scoped_ptr<net::TransportSecurityState> transport_security_state; |
| 129 scoped_ptr<net::CTVerifier> cert_transparency_verifier; | 129 scoped_ptr<net::CTVerifier> cert_transparency_verifier; |
| 130 scoped_refptr<net::SSLConfigService> ssl_config_service; | 130 scoped_refptr<net::SSLConfigService> ssl_config_service; |
| 131 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | 131 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; |
| 132 scoped_ptr<net::HttpServerProperties> http_server_properties; | 132 scoped_ptr<net::HttpServerProperties> http_server_properties; |
| 133 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; | 133 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; |
| 134 scoped_ptr<net::HttpTransactionFactory> | 134 scoped_ptr<net::HttpTransactionFactory> |
| 135 proxy_script_fetcher_http_transaction_factory; | 135 proxy_script_fetcher_http_transaction_factory; |
| 136 scoped_ptr<net::FtpTransactionFactory> | 136 scoped_ptr<net::FtpTransactionFactory> |
| 137 proxy_script_fetcher_ftp_transaction_factory; | 137 proxy_script_fetcher_ftp_transaction_factory; |
| 138 scoped_ptr<net::URLRequestJobFactory> | 138 scoped_ptr<net::URLRequestJobFactory> |
| 139 proxy_script_fetcher_url_request_job_factory; | 139 proxy_script_fetcher_url_request_job_factory; |
| 140 scoped_ptr<net::URLRequestThrottlerManager> throttler_manager; | 140 scoped_ptr<net::URLRequestThrottlerManager> throttler_manager; |
| 141 scoped_ptr<net::URLSecurityManager> url_security_manager; | 141 scoped_ptr<net::URLSecurityManager> url_security_manager; |
| 142 // TODO(willchan): Remove proxy script fetcher context since it's not | 142 // TODO(willchan): Remove proxy script fetcher context since it's not |
| 143 // necessary now that I got rid of refcounting URLRequestContexts. | 143 // necessary now that I got rid of refcounting URLRequestContexts. |
| 144 // | 144 // |
| 145 // The first URLRequestContext is |system_url_request_context|. We introduce | 145 // The first URLRequestContext is |system_url_request_context|. We introduce |
| 146 // |proxy_script_fetcher_context| for the second context. It has a direct | 146 // |proxy_script_fetcher_context| for the second context. It has a direct |
| 147 // ProxyService, since we always directly connect to fetch the PAC script. | 147 // ProxyService, since we always directly connect to fetch the PAC script. |
| 148 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context; | 148 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context; |
| 149 scoped_ptr<net::ProxyService> system_proxy_service; | 149 scoped_ptr<net::ProxyService> system_proxy_service; |
| 150 scoped_ptr<net::HttpTransactionFactory> system_http_transaction_factory; | 150 scoped_ptr<net::HttpTransactionFactory> system_http_transaction_factory; |
| 151 scoped_ptr<net::URLRequestJobFactory> system_url_request_job_factory; | 151 scoped_ptr<net::URLRequestJobFactory> system_url_request_job_factory; |
| 152 scoped_ptr<net::URLRequestContext> system_request_context; | 152 scoped_ptr<net::URLRequestContext> system_request_context; |
| 153 SystemRequestContextLeakChecker system_request_context_leak_checker; | 153 SystemRequestContextLeakChecker system_request_context_leak_checker; |
| 154 // |system_cookie_store| and |system_server_bound_cert_service| are shared | 154 // |system_cookie_store| and |system_channel_id_service| are shared |
| 155 // between |proxy_script_fetcher_context| and |system_request_context|. | 155 // between |proxy_script_fetcher_context| and |system_request_context|. |
| 156 scoped_refptr<net::CookieStore> system_cookie_store; | 156 scoped_refptr<net::CookieStore> system_cookie_store; |
| 157 scoped_refptr<extensions::EventRouterForwarder> | 157 scoped_refptr<extensions::EventRouterForwarder> |
| 158 extension_event_router_forwarder; | 158 extension_event_router_forwarder; |
| 159 scoped_ptr<net::HostMappingRules> host_mapping_rules; | 159 scoped_ptr<net::HostMappingRules> host_mapping_rules; |
| 160 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; | 160 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; |
| 161 bool ignore_certificate_errors; | 161 bool ignore_certificate_errors; |
| 162 uint16 testing_fixed_http_port; | 162 uint16 testing_fixed_http_port; |
| 163 uint16 testing_fixed_https_port; | 163 uint16 testing_fixed_https_port; |
| 164 | 164 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 bool is_spdy_disabled_by_policy_; | 419 bool is_spdy_disabled_by_policy_; |
| 420 | 420 |
| 421 base::WeakPtrFactory<IOThread> weak_factory_; | 421 base::WeakPtrFactory<IOThread> weak_factory_; |
| 422 | 422 |
| 423 const base::TimeTicks creation_time_; | 423 const base::TimeTicks creation_time_; |
| 424 | 424 |
| 425 DISALLOW_COPY_AND_ASSIGN(IOThread); | 425 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 426 }; | 426 }; |
| 427 | 427 |
| 428 #endif // CHROME_BROWSER_IO_THREAD_H_ | 428 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |