OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class HostResolver; | 44 class HostResolver; |
45 class HttpAuthHandlerFactory; | 45 class HttpAuthHandlerFactory; |
46 class HttpServerProperties; | 46 class HttpServerProperties; |
47 class HttpTransactionFactory; | 47 class HttpTransactionFactory; |
48 class NetworkDelegate; | 48 class NetworkDelegate; |
49 class OriginBoundCertService; | 49 class OriginBoundCertService; |
50 class ProxyConfigService; | 50 class ProxyConfigService; |
51 class ProxyService; | 51 class ProxyService; |
52 class SdchManager; | 52 class SdchManager; |
53 class SSLConfigService; | 53 class SSLConfigService; |
| 54 class TransportSecurityState; |
54 class URLRequestContext; | 55 class URLRequestContext; |
55 class URLRequestContextGetter; | 56 class URLRequestContextGetter; |
56 class URLSecurityManager; | 57 class URLSecurityManager; |
57 } // namespace net | 58 } // namespace net |
58 | 59 |
59 // Contains state associated with, initialized and cleaned up on, and | 60 // Contains state associated with, initialized and cleaned up on, and |
60 // primarily used on, the IO thread. Also acts as a convenience | 61 // primarily used on, the IO thread. Also acts as a convenience |
61 // accessor to the Thread object for the IO thread. | 62 // accessor to the Thread object for the IO thread. |
62 class IOThread : public content::BrowserThreadDelegate { | 63 class IOThread : public content::BrowserThreadDelegate { |
63 public: | 64 public: |
64 struct Globals { | 65 struct Globals { |
65 Globals(); | 66 Globals(); |
66 ~Globals(); | 67 ~Globals(); |
67 | 68 |
68 struct MediaGlobals { | 69 struct MediaGlobals { |
69 MediaGlobals(); | 70 MediaGlobals(); |
70 ~MediaGlobals(); | 71 ~MediaGlobals(); |
71 // MediaInternals singleton used to aggregate media information. | 72 // MediaInternals singleton used to aggregate media information. |
72 scoped_ptr<MediaInternals> media_internals; | 73 scoped_ptr<MediaInternals> media_internals; |
73 } media; | 74 } media; |
74 | 75 |
75 // The "system" NetworkDelegate, used for Profile-agnostic network events. | 76 // The "system" NetworkDelegate, used for Profile-agnostic network events. |
76 scoped_ptr<net::NetworkDelegate> system_network_delegate; | 77 scoped_ptr<net::NetworkDelegate> system_network_delegate; |
77 scoped_ptr<net::HostResolver> host_resolver; | 78 scoped_ptr<net::HostResolver> host_resolver; |
78 scoped_ptr<net::CertVerifier> cert_verifier; | 79 scoped_ptr<net::CertVerifier> cert_verifier; |
| 80 // This TransportSecurityState doesn't load or save any state. It's only |
| 81 // used to enforce pinning for system requests and will only use built-in |
| 82 // pins. |
| 83 scoped_ptr<net::TransportSecurityState> transport_security_state; |
79 scoped_ptr<net::DnsRRResolver> dnsrr_resolver; | 84 scoped_ptr<net::DnsRRResolver> dnsrr_resolver; |
80 scoped_refptr<net::SSLConfigService> ssl_config_service; | 85 scoped_refptr<net::SSLConfigService> ssl_config_service; |
81 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | 86 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; |
82 scoped_ptr<net::HttpServerProperties> http_server_properties; | 87 scoped_ptr<net::HttpServerProperties> http_server_properties; |
83 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; | 88 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; |
84 scoped_ptr<net::HttpTransactionFactory> | 89 scoped_ptr<net::HttpTransactionFactory> |
85 proxy_script_fetcher_http_transaction_factory; | 90 proxy_script_fetcher_http_transaction_factory; |
86 scoped_ptr<net::FtpTransactionFactory> | 91 scoped_ptr<net::FtpTransactionFactory> |
87 proxy_script_fetcher_ftp_transaction_factory; | 92 proxy_script_fetcher_ftp_transaction_factory; |
88 scoped_ptr<net::URLSecurityManager> url_security_manager; | 93 scoped_ptr<net::URLSecurityManager> url_security_manager; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 system_url_request_context_getter_; | 210 system_url_request_context_getter_; |
206 | 211 |
207 net::SdchManager* sdch_manager_; | 212 net::SdchManager* sdch_manager_; |
208 | 213 |
209 base::WeakPtrFactory<IOThread> weak_factory_; | 214 base::WeakPtrFactory<IOThread> weak_factory_; |
210 | 215 |
211 DISALLOW_COPY_AND_ASSIGN(IOThread); | 216 DISALLOW_COPY_AND_ASSIGN(IOThread); |
212 }; | 217 }; |
213 | 218 |
214 #endif // CHROME_BROWSER_IO_THREAD_H_ | 219 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |