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 // 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 Loading... |
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 Loading... |
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_ |
OLD | NEW |