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

Unified Diff: net/url_request/url_request_http_job.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.h
diff --git a/net/url_request/url_request_http_job.h b/net/url_request/url_request_http_job.h
index b169c62f68be2ae93ffd87678c5d99c7239f45c6..ded4282fcd47585a8d725ca6725f6ffb78d72586 100644
--- a/net/url_request/url_request_http_job.h
+++ b/net/url_request/url_request_http_job.h
@@ -20,6 +20,7 @@
#include "net/filter/filter.h"
#include "net/http/http_request_info.h"
#include "net/socket/connection_attempts.h"
+#include "net/url_request/url_request_backoff_manager.h"
#include "net/url_request/url_request_job.h"
#include "net/url_request/url_request_throttler_entry_interface.h"
@@ -69,6 +70,9 @@ class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob {
class HttpFilterContext;
+ // Shadows URLRequestJob's version of this method.
+ void NotifyBeforeNetworkStart(bool* defer);
+
// Shadows URLRequestJob's version of this method so we can grab cookies.
void NotifyHeadersComplete();
@@ -83,6 +87,9 @@ class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob {
void SaveNextCookie();
void FetchResponseCookies(std::vector<std::string>* cookies);
+ // Processes a Backoff header, if one exists.
+ void ProcessBackoffHeader();
+
// Processes the Strict-Transport-Security header, if one exists.
void ProcessStrictTransportSecurityHeader();
@@ -265,6 +272,8 @@ class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob {
const HttpUserAgentSettings* http_user_agent_settings_;
+ URLRequestBackoffManager* backoff_manager_;
+
base::WeakPtrFactory<URLRequestHttpJob> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698