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

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

Issue 298063006: Make SdchManager per-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments and changed test name. Created 6 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/filter/sdch_filter_unittest.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 18 matching lines...) Expand all
29 namespace net { 29 namespace net {
30 class CertVerifier; 30 class CertVerifier;
31 class CookieStore; 31 class CookieStore;
32 class CTVerifier; 32 class CTVerifier;
33 class FraudulentCertificateReporter; 33 class FraudulentCertificateReporter;
34 class HostResolver; 34 class HostResolver;
35 class HttpAuthHandlerFactory; 35 class HttpAuthHandlerFactory;
36 class HttpTransactionFactory; 36 class HttpTransactionFactory;
37 class HttpUserAgentSettings; 37 class HttpUserAgentSettings;
38 class NetworkDelegate; 38 class NetworkDelegate;
39 class SdchManager;
39 class ServerBoundCertService; 40 class ServerBoundCertService;
40 class ProxyService; 41 class ProxyService;
41 class URLRequest; 42 class URLRequest;
42 class URLRequestJobFactory; 43 class URLRequestJobFactory;
43 class URLRequestThrottlerManager; 44 class URLRequestThrottlerManager;
44 45
45 // Subclass to provide application-specific context for URLRequest 46 // Subclass to provide application-specific context for URLRequest
46 // instances. Note that URLRequestContext typically does not provide storage for 47 // instances. Note that URLRequestContext typically does not provide storage for
47 // these member variables, since they may be shared. For the ones that aren't 48 // these member variables, since they may be shared. For the ones that aren't
48 // shared, URLRequestContextStorage can be helpful in defining their storage. 49 // shared, URLRequestContextStorage can be helpful in defining their storage.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 178 }
178 179
179 // May be NULL. 180 // May be NULL.
180 URLRequestThrottlerManager* throttler_manager() const { 181 URLRequestThrottlerManager* throttler_manager() const {
181 return throttler_manager_; 182 return throttler_manager_;
182 } 183 }
183 void set_throttler_manager(URLRequestThrottlerManager* throttler_manager) { 184 void set_throttler_manager(URLRequestThrottlerManager* throttler_manager) {
184 throttler_manager_ = throttler_manager; 185 throttler_manager_ = throttler_manager;
185 } 186 }
186 187
188 // May be NULL.
189 SdchManager* sdch_manager() const {
190 return sdch_manager_;
191 }
192 void set_sdch_manager(SdchManager* sdch_manager) {
193 sdch_manager_ = sdch_manager;
194 }
195
187 // Gets the URLRequest objects that hold a reference to this 196 // Gets the URLRequest objects that hold a reference to this
188 // URLRequestContext. 197 // URLRequestContext.
189 std::set<const URLRequest*>* url_requests() const { 198 std::set<const URLRequest*>* url_requests() const {
190 return url_requests_.get(); 199 return url_requests_.get();
191 } 200 }
192 201
193 void AssertNoURLRequests() const; 202 void AssertNoURLRequests() const;
194 203
195 // Get the underlying |HttpUserAgentSettings| implementation that provides 204 // Get the underlying |HttpUserAgentSettings| implementation that provides
196 // the HTTP Accept-Language and User-Agent header values. 205 // the HTTP Accept-Language and User-Agent header values.
(...skipping 23 matching lines...) Expand all
220 scoped_refptr<SSLConfigService> ssl_config_service_; 229 scoped_refptr<SSLConfigService> ssl_config_service_;
221 NetworkDelegate* network_delegate_; 230 NetworkDelegate* network_delegate_;
222 base::WeakPtr<HttpServerProperties> http_server_properties_; 231 base::WeakPtr<HttpServerProperties> http_server_properties_;
223 HttpUserAgentSettings* http_user_agent_settings_; 232 HttpUserAgentSettings* http_user_agent_settings_;
224 scoped_refptr<CookieStore> cookie_store_; 233 scoped_refptr<CookieStore> cookie_store_;
225 TransportSecurityState* transport_security_state_; 234 TransportSecurityState* transport_security_state_;
226 CTVerifier* cert_transparency_verifier_; 235 CTVerifier* cert_transparency_verifier_;
227 HttpTransactionFactory* http_transaction_factory_; 236 HttpTransactionFactory* http_transaction_factory_;
228 const URLRequestJobFactory* job_factory_; 237 const URLRequestJobFactory* job_factory_;
229 URLRequestThrottlerManager* throttler_manager_; 238 URLRequestThrottlerManager* throttler_manager_;
239 SdchManager* sdch_manager_;
230 240
231 // --------------------------------------------------------------------------- 241 // ---------------------------------------------------------------------------
232 // Important: When adding any new members below, consider whether they need to 242 // Important: When adding any new members below, consider whether they need to
233 // be added to CopyFrom. 243 // be added to CopyFrom.
234 // --------------------------------------------------------------------------- 244 // ---------------------------------------------------------------------------
235 245
236 scoped_ptr<std::set<const URLRequest*> > url_requests_; 246 scoped_ptr<std::set<const URLRequest*> > url_requests_;
237 247
238 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 248 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
239 }; 249 };
240 250
241 } // namespace net 251 } // namespace net
242 252
243 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 253 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « net/filter/sdch_filter_unittest.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698