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

Unified Diff: net/url_request/url_request_throttler_manager.h

Issue 1148603003: Remove X-Chrome-Exponential-Throttling header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 7 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_throttler_manager.h
diff --git a/net/url_request/url_request_throttler_manager.h b/net/url_request/url_request_throttler_manager.h
index ee2f2212799342f92e3b0c031f0d360da7c8b3fc..dbc48ac006161d9f6c0b9f5a676e03e365755f30 100644
--- a/net/url_request/url_request_throttler_manager.h
+++ b/net/url_request/url_request_throttler_manager.h
@@ -47,11 +47,6 @@ class NET_EXPORT URLRequestThrottlerManager
scoped_refptr<URLRequestThrottlerEntryInterface> RegisterRequestUrl(
const GURL& url);
- // Adds the given host to a list of sites for which exponential back-off
- // throttling will be disabled. Subdomains are not included, so they
- // must be added separately.
- void AddToOptOutList(const std::string& host);
-
// Registers a new entry in this service and overrides the existing entry (if
// any) for the URL. The service will hold a reference to the entry.
// It is only used by unit tests.
@@ -117,10 +112,6 @@ class NET_EXPORT URLRequestThrottlerManager
typedef std::map<std::string, scoped_refptr<URLRequestThrottlerEntry> >
UrlEntryMap;
- // We maintain a set of hosts that have opted out of exponential
- // back-off throttling.
- typedef std::set<std::string> OptOutHosts;
-
// Maximum number of entries that we are willing to collect in our map.
static const unsigned int kMaximumNumberOfEntries;
// Number of requests that will be made between garbage collection.
@@ -130,9 +121,6 @@ class NET_EXPORT URLRequestThrottlerManager
// URLRequestThrottlerEntry.
UrlEntryMap url_entries_;
- // Set of hosts that have opted out.
- OptOutHosts opt_out_hosts_;
-
// This keeps track of how many requests have been made. Used with
// GarbageCollectEntries.
unsigned int requests_since_last_gc_;
« no previous file with comments | « net/url_request/url_request_throttler_header_interface.h ('k') | net/url_request/url_request_throttler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698