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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 class NetworkDelegate; | 40 class NetworkDelegate; |
41 class ServerBoundCertService; | 41 class ServerBoundCertService; |
42 class ProxyConfigService; | 42 class ProxyConfigService; |
43 class ProxyService; | 43 class ProxyService; |
44 class SdchManager; | 44 class SdchManager; |
45 class SSLConfigService; | 45 class SSLConfigService; |
46 class TransportSecurityState; | 46 class TransportSecurityState; |
47 class URLRequestContext; | 47 class URLRequestContext; |
48 class URLRequestContextGetter; | 48 class URLRequestContextGetter; |
49 class URLRequestThrottlerManager; | 49 class URLRequestThrottlerManager; |
| 50 class URLRequestThrottlerManagerDelegate; |
50 class URLSecurityManager; | 51 class URLSecurityManager; |
51 } // namespace net | 52 } // namespace net |
52 | 53 |
53 // Contains state associated with, initialized and cleaned up on, and | 54 // Contains state associated with, initialized and cleaned up on, and |
54 // primarily used on, the IO thread. | 55 // primarily used on, the IO thread. |
55 // | 56 // |
56 // If you are looking to interact with the IO thread (e.g. post tasks | 57 // If you are looking to interact with the IO thread (e.g. post tasks |
57 // to it or check if it is the current thread), see | 58 // to it or check if it is the current thread), see |
58 // content::BrowserThread. | 59 // content::BrowserThread. |
59 class IOThread : public content::BrowserThreadDelegate { | 60 class IOThread : public content::BrowserThreadDelegate { |
(...skipping 20 matching lines...) Expand all Loading... |
80 // pins. | 81 // pins. |
81 scoped_ptr<net::TransportSecurityState> transport_security_state; | 82 scoped_ptr<net::TransportSecurityState> transport_security_state; |
82 scoped_refptr<net::SSLConfigService> ssl_config_service; | 83 scoped_refptr<net::SSLConfigService> ssl_config_service; |
83 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | 84 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; |
84 scoped_ptr<net::HttpServerProperties> http_server_properties; | 85 scoped_ptr<net::HttpServerProperties> http_server_properties; |
85 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; | 86 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; |
86 scoped_ptr<net::HttpTransactionFactory> | 87 scoped_ptr<net::HttpTransactionFactory> |
87 proxy_script_fetcher_http_transaction_factory; | 88 proxy_script_fetcher_http_transaction_factory; |
88 scoped_ptr<net::FtpTransactionFactory> | 89 scoped_ptr<net::FtpTransactionFactory> |
89 proxy_script_fetcher_ftp_transaction_factory; | 90 proxy_script_fetcher_ftp_transaction_factory; |
| 91 scoped_ptr<net::URLRequestThrottlerManagerDelegate> |
| 92 throttler_manager_delegate; |
90 scoped_ptr<net::URLRequestThrottlerManager> throttler_manager; | 93 scoped_ptr<net::URLRequestThrottlerManager> throttler_manager; |
91 scoped_ptr<net::URLSecurityManager> url_security_manager; | 94 scoped_ptr<net::URLSecurityManager> url_security_manager; |
92 // TODO(willchan): Remove proxy script fetcher context since it's not | 95 // TODO(willchan): Remove proxy script fetcher context since it's not |
93 // necessary now that I got rid of refcounting URLRequestContexts. | 96 // necessary now that I got rid of refcounting URLRequestContexts. |
94 // | 97 // |
95 // The first URLRequestContext is |system_url_request_context|. We introduce | 98 // The first URLRequestContext is |system_url_request_context|. We introduce |
96 // |proxy_script_fetcher_context| for the second context. It has a direct | 99 // |proxy_script_fetcher_context| for the second context. It has a direct |
97 // ProxyService, since we always directly connect to fetch the PAC script. | 100 // ProxyService, since we always directly connect to fetch the PAC script. |
98 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context; | 101 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context; |
99 scoped_ptr<net::ProxyService> system_proxy_service; | 102 scoped_ptr<net::ProxyService> system_proxy_service; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 system_url_request_context_getter_; | 214 system_url_request_context_getter_; |
212 | 215 |
213 net::SdchManager* sdch_manager_; | 216 net::SdchManager* sdch_manager_; |
214 | 217 |
215 base::WeakPtrFactory<IOThread> weak_factory_; | 218 base::WeakPtrFactory<IOThread> weak_factory_; |
216 | 219 |
217 DISALLOW_COPY_AND_ASSIGN(IOThread); | 220 DISALLOW_COPY_AND_ASSIGN(IOThread); |
218 }; | 221 }; |
219 | 222 |
220 #endif // CHROME_BROWSER_IO_THREAD_H_ | 223 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |