Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: net/url_request/url_request_context.h

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/cookies/cookie_store_unittest.h ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This class represents contextual information (cookies, cache, etc.) 5 // This class represents contextual information (cookies, cache, etc.)
6 // that's useful when processing resource requests. 6 // that's useful when processing resource requests.
7 // The class is reference-counted so that it can be cleaned up after any 7 // The class is reference-counted so that it can be cleaned up after any
8 // requests that are using it have been completed. 8 // requests that are using it have been completed.
9 9
10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void set_http_server_properties( 138 void set_http_server_properties(
139 const base::WeakPtr<HttpServerProperties>& http_server_properties) { 139 const base::WeakPtr<HttpServerProperties>& http_server_properties) {
140 http_server_properties_ = http_server_properties; 140 http_server_properties_ = http_server_properties;
141 } 141 }
142 base::WeakPtr<HttpServerProperties> http_server_properties() const { 142 base::WeakPtr<HttpServerProperties> http_server_properties() const {
143 return http_server_properties_; 143 return http_server_properties_;
144 } 144 }
145 145
146 // Gets the cookie store for this context (may be null, in which case 146 // Gets the cookie store for this context (may be null, in which case
147 // cookies are not stored). 147 // cookies are not stored).
148 CookieStore* cookie_store() const { return cookie_store_.get(); } 148 CookieStore* cookie_store() const { return cookie_store_; }
149 void set_cookie_store(CookieStore* cookie_store); 149 void set_cookie_store(CookieStore* cookie_store);
150 150
151 TransportSecurityState* transport_security_state() const { 151 TransportSecurityState* transport_security_state() const {
152 return transport_security_state_; 152 return transport_security_state_;
153 } 153 }
154 void set_transport_security_state( 154 void set_transport_security_state(
155 TransportSecurityState* state) { 155 TransportSecurityState* state) {
156 transport_security_state_ = state; 156 transport_security_state_ = state;
157 } 157 }
158 158
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 NetLog* net_log_; 230 NetLog* net_log_;
231 HostResolver* host_resolver_; 231 HostResolver* host_resolver_;
232 CertVerifier* cert_verifier_; 232 CertVerifier* cert_verifier_;
233 ChannelIDService* channel_id_service_; 233 ChannelIDService* channel_id_service_;
234 HttpAuthHandlerFactory* http_auth_handler_factory_; 234 HttpAuthHandlerFactory* http_auth_handler_factory_;
235 ProxyService* proxy_service_; 235 ProxyService* proxy_service_;
236 scoped_refptr<SSLConfigService> ssl_config_service_; 236 scoped_refptr<SSLConfigService> ssl_config_service_;
237 NetworkDelegate* network_delegate_; 237 NetworkDelegate* network_delegate_;
238 base::WeakPtr<HttpServerProperties> http_server_properties_; 238 base::WeakPtr<HttpServerProperties> http_server_properties_;
239 HttpUserAgentSettings* http_user_agent_settings_; 239 HttpUserAgentSettings* http_user_agent_settings_;
240 scoped_refptr<CookieStore> cookie_store_; 240 CookieStore* cookie_store_;
241 TransportSecurityState* transport_security_state_; 241 TransportSecurityState* transport_security_state_;
242 CTVerifier* cert_transparency_verifier_; 242 CTVerifier* cert_transparency_verifier_;
243 HttpTransactionFactory* http_transaction_factory_; 243 HttpTransactionFactory* http_transaction_factory_;
244 const URLRequestJobFactory* job_factory_; 244 const URLRequestJobFactory* job_factory_;
245 URLRequestThrottlerManager* throttler_manager_; 245 URLRequestThrottlerManager* throttler_manager_;
246 URLRequestBackoffManager* backoff_manager_; 246 URLRequestBackoffManager* backoff_manager_;
247 SdchManager* sdch_manager_; 247 SdchManager* sdch_manager_;
248 NetworkQualityEstimator* network_quality_estimator_; 248 NetworkQualityEstimator* network_quality_estimator_;
249 249
250 // --------------------------------------------------------------------------- 250 // ---------------------------------------------------------------------------
251 // Important: When adding any new members below, consider whether they need to 251 // Important: When adding any new members below, consider whether they need to
252 // be added to CopyFrom. 252 // be added to CopyFrom.
253 // --------------------------------------------------------------------------- 253 // ---------------------------------------------------------------------------
254 254
255 scoped_ptr<std::set<const URLRequest*> > url_requests_; 255 scoped_ptr<std::set<const URLRequest*> > url_requests_;
256 256
257 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 257 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
258 }; 258 };
259 259
260 } // namespace net 260 } // namespace net
261 261
262 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 262 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « net/cookies/cookie_store_unittest.h ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698