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

Unified Diff: net/url_request/url_request_throttler_manager.h

Issue 5961008: Give user the ability to disable the URL request throttler:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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_http_job.cc ('k') | net/url_request/url_request_throttler_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_throttler_manager.h
===================================================================
--- net/url_request/url_request_throttler_manager.h (revision 69995)
+++ net/url_request/url_request_throttler_manager.h (working copy)
@@ -49,6 +49,12 @@
// It is only used by unit tests.
void EraseEntryForTests(const GURL& url);
+ void set_enforce_throttling(bool enforce_throttling) {
+ enforce_throttling_ = enforce_throttling;
+ }
+
+ bool enforce_throttling() const { return enforce_throttling_; }
+
protected:
URLRequestThrottlerManager();
~URLRequestThrottlerManager();
@@ -93,6 +99,10 @@
mutable scoped_ptr<GURL::Replacements> url_id_replacements_;
+ // Whether we would like to reject outgoing HTTP requests during the back-off
+ // period.
+ bool enforce_throttling_;
+
DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager);
};
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_throttler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698