summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_service.h
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 00:58:38 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 00:58:38 +0000
commitbeb13401498aff7d63ff3b150066b499a424050f (patch)
tree0f3c97957d3976778566e810d7e2cf4ef5baab7e /webkit/appcache/appcache_service.h
parent203445cdc4715cfdff954ff8a2f2281df3a47ee6 (diff)
downloadchromium_src-beb13401498aff7d63ff3b150066b499a424050f.zip
chromium_src-beb13401498aff7d63ff3b150066b499a424050f.tar.gz
chromium_src-beb13401498aff7d63ff3b150066b499a424050f.tar.bz2
AppCache: Add a helper method to AppCacheService to test if a request can be handled while offline.
BUG=65547, chromium-os:9559 TEST=none Review URL: http://codereview.chromium.org/6269016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_service.h')
-rw-r--r--webkit/appcache/appcache_service.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_service.h b/webkit/appcache/appcache_service.h
index 7d200b3..6a0c931 100644
--- a/webkit/appcache/appcache_service.h
+++ b/webkit/appcache/appcache_service.h
@@ -58,6 +58,11 @@ class AppCacheService {
storage_->PurgeMemory();
}
+ // Determines if a request for 'url' can be satisfied while offline.
+ // This method always completes asynchronously.
+ void CanHandleMainResourceOffline(const GURL& url,
+ net::CompletionCallback* callback);
+
// Populates 'collection' with info about all of the appcaches stored
// within the service, 'callback' is invoked upon completion. The service
// acquires a reference to the 'collection' until until completion.
@@ -103,6 +108,7 @@ class AppCacheService {
protected:
class AsyncHelper;
+ class CanHandleOfflineHelper;
class DeleteHelper;
class GetInfoHelper;