diff options
author | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 17:46:21 +0000 |
---|---|---|
committer | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 17:46:21 +0000 |
commit | b75a52794712b69a59960901f4761aef748e38bf (patch) | |
tree | 3dd9dad03dba7b0dc8e60cdfd309dcd8f0d009d8 /webkit/appcache/appcache_update_job.h | |
parent | d0767cb54b2b5ee4d9cf00b3ee0fa585826b4036 (diff) | |
download | chromium_src-b75a52794712b69a59960901f4761aef748e38bf.zip chromium_src-b75a52794712b69a59960901f4761aef748e38bf.tar.gz chromium_src-b75a52794712b69a59960901f4761aef748e38bf.tar.bz2 |
Make appcache update job retry 503 requests with retry-after of 0.
TEST=test retry logic
BUG=none
Review URL: http://codereview.chromium.org/264002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_update_job.h')
-rw-r--r-- | webkit/appcache/appcache_update_job.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_update_job.h b/webkit/appcache/appcache_update_job.h index 160e27e..0c19196 100644 --- a/webkit/appcache/appcache_update_job.h +++ b/webkit/appcache/appcache_update_job.h @@ -74,6 +74,10 @@ class AppCacheUpdateJob : public URLRequest::Delegate { void OnResponseCompleted(URLRequest* request); + // Retries a 503 request with retry-after header of 0. + // Returns true if request should be retried and deletes original request. + bool RetryRequest(URLRequest* request); + void ReadResponseData(URLRequest* request); // Returns false if response data is processed asynchronously, in which |