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

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

Issue 1153093002: Implement URLRequestBackoffManager for managing Backoff headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests Created 5 years, 5 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
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 #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/basictypes.h" 8 #include "base/basictypes.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 11 matching lines...) Expand all
22 class HttpServerProperties; 22 class HttpServerProperties;
23 class HttpTransactionFactory; 23 class HttpTransactionFactory;
24 class HttpUserAgentSettings; 24 class HttpUserAgentSettings;
25 class NetLog; 25 class NetLog;
26 class NetworkDelegate; 26 class NetworkDelegate;
27 class ProxyService; 27 class ProxyService;
28 class SdchManager; 28 class SdchManager;
29 class SSLConfigService; 29 class SSLConfigService;
30 class TransportSecurityState; 30 class TransportSecurityState;
31 class URLRequestContext; 31 class URLRequestContext;
32 class URLRequestBackoffManager;
32 class URLRequestJobFactory; 33 class URLRequestJobFactory;
33 class URLRequestThrottlerManager; 34 class URLRequestThrottlerManager;
34 35
35 // URLRequestContextStorage is a helper class that provides storage for unowned 36 // URLRequestContextStorage is a helper class that provides storage for unowned
36 // member variables of URLRequestContext. 37 // member variables of URLRequestContext.
37 class NET_EXPORT URLRequestContextStorage { 38 class NET_EXPORT URLRequestContextStorage {
38 public: 39 public:
39 // Note that URLRequestContextStorage does not acquire a reference to 40 // Note that URLRequestContextStorage does not acquire a reference to
40 // URLRequestContext, since it is often designed to be embedded in a 41 // URLRequestContext, since it is often designed to be embedded in a
41 // URLRequestContext subclass. 42 // URLRequestContext subclass.
(...skipping 16 matching lines...) Expand all
58 void set_network_delegate(NetworkDelegate* network_delegate); 59 void set_network_delegate(NetworkDelegate* network_delegate);
59 void set_http_server_properties( 60 void set_http_server_properties(
60 scoped_ptr<HttpServerProperties> http_server_properties); 61 scoped_ptr<HttpServerProperties> http_server_properties);
61 void set_cookie_store(CookieStore* cookie_store); 62 void set_cookie_store(CookieStore* cookie_store);
62 void set_transport_security_state( 63 void set_transport_security_state(
63 TransportSecurityState* transport_security_state); 64 TransportSecurityState* transport_security_state);
64 void set_http_transaction_factory( 65 void set_http_transaction_factory(
65 HttpTransactionFactory* http_transaction_factory); 66 HttpTransactionFactory* http_transaction_factory);
66 void set_job_factory(URLRequestJobFactory* job_factory); 67 void set_job_factory(URLRequestJobFactory* job_factory);
67 void set_throttler_manager(URLRequestThrottlerManager* throttler_manager); 68 void set_throttler_manager(URLRequestThrottlerManager* throttler_manager);
69 void set_backoff_manager(URLRequestBackoffManager* backoff_manager);
68 void set_http_user_agent_settings( 70 void set_http_user_agent_settings(
69 HttpUserAgentSettings* http_user_agent_settings); 71 HttpUserAgentSettings* http_user_agent_settings);
70 void set_sdch_manager(scoped_ptr<SdchManager> sdch_manager); 72 void set_sdch_manager(scoped_ptr<SdchManager> sdch_manager);
71 73
72 private: 74 private:
73 // We use a raw pointer to prevent reference cycles, since 75 // We use a raw pointer to prevent reference cycles, since
74 // URLRequestContextStorage can often be contained within a URLRequestContext 76 // URLRequestContextStorage can often be contained within a URLRequestContext
75 // subclass. 77 // subclass.
76 URLRequestContext* const context_; 78 URLRequestContext* const context_;
77 79
(...skipping 10 matching lines...) Expand all
88 scoped_refptr<SSLConfigService> ssl_config_service_; 90 scoped_refptr<SSLConfigService> ssl_config_service_;
89 scoped_ptr<NetworkDelegate> network_delegate_; 91 scoped_ptr<NetworkDelegate> network_delegate_;
90 scoped_ptr<HttpServerProperties> http_server_properties_; 92 scoped_ptr<HttpServerProperties> http_server_properties_;
91 scoped_ptr<HttpUserAgentSettings> http_user_agent_settings_; 93 scoped_ptr<HttpUserAgentSettings> http_user_agent_settings_;
92 scoped_refptr<CookieStore> cookie_store_; 94 scoped_refptr<CookieStore> cookie_store_;
93 scoped_ptr<TransportSecurityState> transport_security_state_; 95 scoped_ptr<TransportSecurityState> transport_security_state_;
94 96
95 scoped_ptr<HttpTransactionFactory> http_transaction_factory_; 97 scoped_ptr<HttpTransactionFactory> http_transaction_factory_;
96 scoped_ptr<URLRequestJobFactory> job_factory_; 98 scoped_ptr<URLRequestJobFactory> job_factory_;
97 scoped_ptr<URLRequestThrottlerManager> throttler_manager_; 99 scoped_ptr<URLRequestThrottlerManager> throttler_manager_;
100 scoped_ptr<URLRequestBackoffManager> backoff_manager_;
98 scoped_ptr<SdchManager> sdch_manager_; 101 scoped_ptr<SdchManager> sdch_manager_;
99 102
100 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); 103 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage);
101 }; 104 };
102 105
103 } // namespace net 106 } // namespace net
104 107
105 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 108 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_context_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698