| 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);
|
| };
|
|
|
|
|