From 62df7bb0355940a004564f455f6df63384017826 Mon Sep 17 00:00:00 2001 From: "eroman@chromium.org" Date: Fri, 20 Jan 2012 23:55:14 +0000 Subject: 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 --- net/proxy/proxy_service.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'net/proxy/proxy_service.h') 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; }; -- cgit v1.1