Index: net/url_request/url_request_throttler_entry_interface.h |
diff --git a/net/url_request/url_request_throttler_entry_interface.h b/net/url_request/url_request_throttler_entry_interface.h |
index 86feb9f659d041b197c4130ed0cf495555e88fa6..36c98c98978dd58e3b64416cd6f948c2c0c33652 100644 |
--- a/net/url_request/url_request_throttler_entry_interface.h |
+++ b/net/url_request/url_request_throttler_entry_interface.h |
@@ -24,10 +24,12 @@ class NET_API URLRequestThrottlerEntryInterface |
URLRequestThrottlerEntryInterface() {} |
// Returns true when we have encountered server errors and are doing |
- // exponential back-off. |
+ // exponential back-off, unless the request has |load_flags| (from |
+ // net/base/load_flags.h) that mean it is definitely user-initiated. |
yzshen1
2011/08/05 21:50:41
nit: now that the flag is 'MAYBE', 'definitely' ma
Jói
2011/08/08 17:09:45
Thanks, that part of the comment is now like this:
|
+ // |
// URLRequestHttpJob checks this method prior to every request; it |
// cancels requests if this method returns true. |
- virtual bool IsDuringExponentialBackoff() const = 0; |
+ virtual bool ShouldRejectRequest(int load_flags) const = 0; |
// Calculates a recommended sending time for the next request and reserves it. |
// The sending time is not earlier than the current exponential back-off |