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

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

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request.cc ('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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 fraudulent_certificate_reporter_ = fraudulent_certificate_reporter; 100 fraudulent_certificate_reporter_ = fraudulent_certificate_reporter;
101 } 101 }
102 102
103 // Get the proxy service for this context. 103 // Get the proxy service for this context.
104 ProxyService* proxy_service() const { return proxy_service_; } 104 ProxyService* proxy_service() const { return proxy_service_; }
105 void set_proxy_service(ProxyService* proxy_service) { 105 void set_proxy_service(ProxyService* proxy_service) {
106 proxy_service_ = proxy_service; 106 proxy_service_ = proxy_service;
107 } 107 }
108 108
109 // Get the ssl config service for this context. 109 // Get the ssl config service for this context.
110 SSLConfigService* ssl_config_service() const { return ssl_config_service_; } 110 SSLConfigService* ssl_config_service() const {
111 return ssl_config_service_.get();
112 }
111 void set_ssl_config_service(SSLConfigService* service) { 113 void set_ssl_config_service(SSLConfigService* service) {
112 ssl_config_service_ = service; 114 ssl_config_service_ = service;
113 } 115 }
114 116
115 // Gets the HTTP Authentication Handler Factory for this context. 117 // Gets the HTTP Authentication Handler Factory for this context.
116 // The factory is only valid for the lifetime of this URLRequestContext 118 // The factory is only valid for the lifetime of this URLRequestContext
117 HttpAuthHandlerFactory* http_auth_handler_factory() const { 119 HttpAuthHandlerFactory* http_auth_handler_factory() const {
118 return http_auth_handler_factory_; 120 return http_auth_handler_factory_;
119 } 121 }
120 void set_http_auth_handler_factory(HttpAuthHandlerFactory* factory) { 122 void set_http_auth_handler_factory(HttpAuthHandlerFactory* factory) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // --------------------------------------------------------------------------- 230 // ---------------------------------------------------------------------------
229 231
230 scoped_ptr<std::set<const URLRequest*> > url_requests_; 232 scoped_ptr<std::set<const URLRequest*> > url_requests_;
231 233
232 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 234 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
233 }; 235 };
234 236
235 } // namespace net 237 } // namespace net
236 238
237 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 239 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698