Commit bd54da79 authored by maniscalco's avatar maniscalco Committed by Commit bot

Improve URLFetcher documentation for retry on 5XX settings.

BUG=

Review URL: https://codereview.chromium.org/543073003

Cr-Commit-Position: refs/heads/master@{#293594}
parent 1d6a91d4
...@@ -215,11 +215,15 @@ class NET_EXPORT URLFetcher { ...@@ -215,11 +215,15 @@ class NET_EXPORT URLFetcher {
// server response code. // server response code.
virtual void SetStopOnRedirect(bool stop_on_redirect) = 0; virtual void SetStopOnRedirect(bool stop_on_redirect) = 0;
// If |retry| is false, 5xx responses will be propagated to the observer, // If |retry| is false, 5xx responses will be propagated to the observer. If
// if it is true URLFetcher will automatically re-execute the request, // it is true URLFetcher will automatically re-execute the request, after
// after backoff_delay() elapses. URLFetcher has it set to true by default. // backoff_delay() elapses, up to the maximum number of retries allowed by
// SetMaxRetriesOn5xx. Defaults to true.
virtual void SetAutomaticallyRetryOn5xx(bool retry) = 0; virtual void SetAutomaticallyRetryOn5xx(bool retry) = 0;
// |max_retries| is the maximum number of times URLFetcher will retry a
// request that receives a 5XX response. Depends on
// SetAutomaticallyRetryOn5xx. Defaults to 0.
virtual void SetMaxRetriesOn5xx(int max_retries) = 0; virtual void SetMaxRetriesOn5xx(int max_retries) = 0;
virtual int GetMaxRetriesOn5xx() const = 0; virtual int GetMaxRetriesOn5xx() const = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment