Chromium Code Reviews| 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 259c5cfbce318fd92b1c70884292299d22fd9c60..ce337c3bca99ee9e15b67688345babae03fefcd9 100644 |
| --- a/net/url_request/url_request_throttler_entry_interface.h |
| +++ b/net/url_request/url_request_throttler_entry_interface.h |
| @@ -49,9 +49,10 @@ class NET_API URLRequestThrottlerEntryInterface |
| // Lets higher-level modules, that know how to parse particular response |
| // bodies, notify of receiving malformed content for the given URL. This will |
| - // be handled by the throttler as if an HTTP 5xx response had been received to |
| - // the request, i.e. it will count as a failure. |
| - virtual void ReceivedContentWasMalformed() = 0; |
| + // be handled by the throttler as if an HTTP 503 response had been received to |
| + // the request, i.e. it will count as a failure, unless the HTTP status code |
| + // indicated is already one of those that will be counted as an error. |
| + virtual void ReceivedContentWasMalformed(int status_code) = 0; |
|
wtc
2011/05/27 17:35:19
Nit: status_code => response_code ?
Jói
2011/05/27 18:49:10
Done, sorry I thought I had caught them all before
|
| protected: |
| friend class base::RefCountedThreadSafe<URLRequestThrottlerEntryInterface>; |