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 NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void set_cert_verifier(scoped_ptr<CertVerifier> cert_verifier); | 52 void set_cert_verifier(scoped_ptr<CertVerifier> cert_verifier); |
53 void set_channel_id_service(scoped_ptr<ChannelIDService> channel_id_service); | 53 void set_channel_id_service(scoped_ptr<ChannelIDService> channel_id_service); |
54 void set_http_auth_handler_factory( | 54 void set_http_auth_handler_factory( |
55 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory); | 55 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory); |
56 void set_proxy_service(scoped_ptr<ProxyService> proxy_service); | 56 void set_proxy_service(scoped_ptr<ProxyService> proxy_service); |
57 void set_ssl_config_service(SSLConfigService* ssl_config_service); | 57 void set_ssl_config_service(SSLConfigService* ssl_config_service); |
58 void set_network_delegate(scoped_ptr<NetworkDelegate> network_delegate); | 58 void set_network_delegate(scoped_ptr<NetworkDelegate> network_delegate); |
59 void set_proxy_delegate(scoped_ptr<ProxyDelegate> proxy_delegate); | 59 void set_proxy_delegate(scoped_ptr<ProxyDelegate> proxy_delegate); |
60 void set_http_server_properties( | 60 void set_http_server_properties( |
61 scoped_ptr<HttpServerProperties> http_server_properties); | 61 scoped_ptr<HttpServerProperties> http_server_properties); |
62 void set_cookie_store(CookieStore* cookie_store); | 62 void set_cookie_store(scoped_ptr<CookieStore> cookie_store); |
63 void set_transport_security_state( | 63 void set_transport_security_state( |
64 scoped_ptr<TransportSecurityState> transport_security_state); | 64 scoped_ptr<TransportSecurityState> transport_security_state); |
65 void set_http_network_session( | 65 void set_http_network_session( |
66 scoped_ptr<HttpNetworkSession> http_network_session); | 66 scoped_ptr<HttpNetworkSession> http_network_session); |
67 void set_http_transaction_factory( | 67 void set_http_transaction_factory( |
68 scoped_ptr<HttpTransactionFactory> http_transaction_factory); | 68 scoped_ptr<HttpTransactionFactory> http_transaction_factory); |
69 void set_job_factory(scoped_ptr<URLRequestJobFactory> job_factory); | 69 void set_job_factory(scoped_ptr<URLRequestJobFactory> job_factory); |
70 void set_throttler_manager( | 70 void set_throttler_manager( |
71 scoped_ptr<URLRequestThrottlerManager> throttler_manager); | 71 scoped_ptr<URLRequestThrottlerManager> throttler_manager); |
72 void set_backoff_manager( | 72 void set_backoff_manager( |
(...skipping 21 matching lines...) Expand all Loading... |
94 // The ChannelIDService must outlive the HttpTransactionFactory. | 94 // The ChannelIDService must outlive the HttpTransactionFactory. |
95 scoped_ptr<ChannelIDService> channel_id_service_; | 95 scoped_ptr<ChannelIDService> channel_id_service_; |
96 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_; | 96 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_; |
97 scoped_ptr<ProxyService> proxy_service_; | 97 scoped_ptr<ProxyService> proxy_service_; |
98 // TODO(willchan): Remove refcounting on these members. | 98 // TODO(willchan): Remove refcounting on these members. |
99 scoped_refptr<SSLConfigService> ssl_config_service_; | 99 scoped_refptr<SSLConfigService> ssl_config_service_; |
100 scoped_ptr<NetworkDelegate> network_delegate_; | 100 scoped_ptr<NetworkDelegate> network_delegate_; |
101 scoped_ptr<ProxyDelegate> proxy_delegate_; | 101 scoped_ptr<ProxyDelegate> proxy_delegate_; |
102 scoped_ptr<HttpServerProperties> http_server_properties_; | 102 scoped_ptr<HttpServerProperties> http_server_properties_; |
103 scoped_ptr<HttpUserAgentSettings> http_user_agent_settings_; | 103 scoped_ptr<HttpUserAgentSettings> http_user_agent_settings_; |
104 scoped_refptr<CookieStore> cookie_store_; | 104 scoped_ptr<CookieStore> cookie_store_; |
105 scoped_ptr<TransportSecurityState> transport_security_state_; | 105 scoped_ptr<TransportSecurityState> transport_security_state_; |
106 | 106 |
107 // Not actually pointed at by the URLRequestContext, but may be used (but not | 107 // Not actually pointed at by the URLRequestContext, but may be used (but not |
108 // owned) by the HttpTransactionFactory. | 108 // owned) by the HttpTransactionFactory. |
109 scoped_ptr<HttpNetworkSession> http_network_session_; | 109 scoped_ptr<HttpNetworkSession> http_network_session_; |
110 | 110 |
111 scoped_ptr<HttpTransactionFactory> http_transaction_factory_; | 111 scoped_ptr<HttpTransactionFactory> http_transaction_factory_; |
112 scoped_ptr<URLRequestJobFactory> job_factory_; | 112 scoped_ptr<URLRequestJobFactory> job_factory_; |
113 scoped_ptr<URLRequestThrottlerManager> throttler_manager_; | 113 scoped_ptr<URLRequestThrottlerManager> throttler_manager_; |
114 scoped_ptr<URLRequestBackoffManager> backoff_manager_; | 114 scoped_ptr<URLRequestBackoffManager> backoff_manager_; |
115 scoped_ptr<SdchManager> sdch_manager_; | 115 scoped_ptr<SdchManager> sdch_manager_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); | 117 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace net | 120 } // namespace net |
121 | 121 |
122 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 122 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
OLD | NEW |