Index: net/url_request/url_request_throttler_entry.h |
diff --git a/net/url_request/url_request_throttler_entry.h b/net/url_request/url_request_throttler_entry.h |
index cbb84e76ea76272ec58953112126cbad7fa7dd54..dd21a9d14cec3f598845a5abbf3a1695693464e5 100644 |
--- a/net/url_request/url_request_throttler_entry.h |
+++ b/net/url_request/url_request_throttler_entry.h |
@@ -58,14 +58,6 @@ class NET_EXPORT URLRequestThrottlerEntry |
// Time after which the entry is considered outdated. |
static const int kDefaultEntryLifetimeMs; |
- // Name of the header that sites can use to opt out of exponential back-off |
- // throttling. |
- static const char kExponentialThrottlingHeader[]; |
- |
- // Value for exponential throttling header that can be used to opt out of |
- // exponential back-off throttling. |
- static const char kExponentialThrottlingDisableValue[]; |
- |
// The manager object's lifetime must enclose the lifetime of this object. |
URLRequestThrottlerEntry(URLRequestThrottlerManager* manager, |
const std::string& url_id); |
@@ -98,9 +90,7 @@ class NET_EXPORT URLRequestThrottlerEntry |
int64 ReserveSendingTimeForNextRequest( |
const base::TimeTicks& earliest_time) override; |
base::TimeTicks GetExponentialBackoffReleaseTime() const override; |
- void UpdateWithResponse( |
- const std::string& host, |
- const URLRequestThrottlerHeaderInterface* response) override; |
+ void UpdateWithResponse(const std::string& host, int status_code) override; |
void ReceivedContentWasMalformed(int response_code) override; |
protected: |
@@ -115,10 +105,6 @@ class NET_EXPORT URLRequestThrottlerEntry |
// Equivalent to TimeTicks::Now(), virtual to be mockable for testing purpose. |
virtual base::TimeTicks ImplGetTimeNow() const; |
- // Used internally to handle the opt-out header. |
- void HandleThrottlingHeader(const std::string& header_value, |
- const std::string& host); |
- |
// Retrieves the back-off entry object we're using. Used to enable a |
// unit testing seam for dependency injection in tests. |
virtual const BackoffEntry* GetBackoffEntry() const; |