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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 6711046: Add an opt-out header for HTTP throttling. Never throttle for localhost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyright years. Created 9 years, 9 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
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index faf8d8407a6b061b32302f1a211b890749b82a33..e25477b6a486e9cac8500fd1039d8692d7f105a6 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -159,7 +159,8 @@ void URLRequestHttpJob::NotifyHeadersComplete() {
if (!is_cached_content_) {
URLRequestThrottlerHeaderAdapter response_adapter(
response_info_->headers);
- throttling_entry_->UpdateWithResponse(&response_adapter);
+ throttling_entry_->UpdateWithResponse(request_info_.url.host(),
yzshen1 2011/03/18 22:49:51 A throttling entry is used for a specific URL (and
Jói 2011/03/23 23:38:24 Storing the host would increase the required stora
yzshen1 2011/03/24 20:06:37 Okay. On 2011/03/23 23:38:24, Jói wrote:
+ &response_adapter);
}
ProcessStrictTransportSecurityHeader();

Powered by Google App Engine
This is Rietveld 408576698