summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_throttler_entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/url_request/url_request_throttler_entry.h')
-rw-r--r--net/url_request/url_request_throttler_entry.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/url_request/url_request_throttler_entry.h b/net/url_request/url_request_throttler_entry.h
index 10f1adc..df03fb3 100644
--- a/net/url_request/url_request_throttler_entry.h
+++ b/net/url_request/url_request_throttler_entry.h
@@ -97,7 +97,7 @@ class NET_API URLRequestThrottlerEntry
void DetachManager();
// Implementation of URLRequestThrottlerEntryInterface.
- virtual bool IsDuringExponentialBackoff() const;
+ virtual bool ShouldRejectRequest(int load_flags) const;
virtual int64 ReserveSendingTimeForNextRequest(
const base::TimeTicks& earliest_time);
virtual base::TimeTicks GetExponentialBackoffReleaseTime() const;
@@ -134,6 +134,11 @@ class NET_API URLRequestThrottlerEntry
virtual const BackoffEntry* GetBackoffEntry() const;
virtual BackoffEntry* GetBackoffEntry();
+ // Returns true if |load_flags| contains a flag that indicates an
+ // explicit request by the user to load the resource. We never
+ // throttle requests with such load flags.
+ static bool ExplicitUserRequest(const int load_flags);
+
// Used by tests.
base::TimeTicks sliding_window_release_time() const {
return sliding_window_release_time_;