diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-20 23:55:14 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-20 23:55:14 +0000 |
commit | 62df7bb0355940a004564f455f6df63384017826 (patch) | |
tree | 5b6c8e3fe47380d584e31202adf405f7f9e9b397 /net/proxy/proxy_service.h | |
parent | d634f10e917bb73d42404c5cedb50d99c0b3181c (diff) | |
download | chromium_src-62df7bb0355940a004564f455f6df63384017826.zip chromium_src-62df7bb0355940a004564f455f6df63384017826.tar.gz chromium_src-62df7bb0355940a004564f455f6df63384017826.tar.bz2 |
Decrease the PAC polling delay even further.
Reduces the poll interval for success to 12 hours, and for failures to a maximum of 4 hours.
BUG=110551
Review URL: https://chromiumcodereview.appspot.com/9255033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_service.h')
-rw-r--r-- | net/proxy/proxy_service.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h index 7fcfa4b..8b657a9 100644 --- a/net/proxy/proxy_service.h +++ b/net/proxy/proxy_service.h @@ -73,14 +73,14 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver, virtual ~PacPollPolicy() {} - // Decides the initial poll delay. |error| is the network error - // code that the most last PAC fetch failed with (or OK if it was a - // success). Implementations must set |next_delay_ms|. - virtual Mode GetInitialDelay(int error, int64* next_delay_ms) const = 0; - // Decides the next poll delay. |current_delay_ms| is the delay used - // by the preceding poll. Implementations must set |next_delay_ms|. - virtual Mode GetNextDelay(int64 current_delay_ms, + // by the preceding poll, or -1 if determining the delay for the initial + // poll. |initial_error| is the network error code that the last PAC + // fetch (or WPAD initialization) failed with, or OK if it completed + // successfully. Implementations must set |next_delay_ms| to a non-negative + // value. + virtual Mode GetNextDelay(int initial_error, + int64 current_delay_ms, int64* next_delay_ms) const = 0; }; |