summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache.h
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 02:10:27 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 02:10:27 +0000
commit2bfc5c14f395ef247a5980e1a6dcc0f26893f2d6 (patch)
tree42b0e45b16affe458cc051c7bdd282e2e43546cf /webkit/appcache/appcache.h
parentd32e75740a892b8578c825b9b5fb850ee5f41269 (diff)
downloadchromium_src-2bfc5c14f395ef247a5980e1a6dcc0f26893f2d6.zip
chromium_src-2bfc5c14f395ef247a5980e1a6dcc0f26893f2d6.tar.gz
chromium_src-2bfc5c14f395ef247a5980e1a6dcc0f26893f2d6.tar.bz2
Lookup appcached responses given a request URL.
TEST=new cases in mock_appcache_storage_unittest.cc and appcache_unittest.cc BUG=none Review URL: http://codereview.chromium.org/372070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31757 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache.h')
-rw-r--r--webkit/appcache/appcache.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/webkit/appcache/appcache.h b/webkit/appcache/appcache.h
index b601fcc..6e43a85 100644
--- a/webkit/appcache/appcache.h
+++ b/webkit/appcache/appcache.h
@@ -75,11 +75,10 @@ class AppCache : public base::RefCounted<AppCache> {
// Do not use the manifest after this call.
void InitializeWithManifest(Manifest* manifest);
- void FindResponseForRequest(const GURL& url,
+ bool FindResponseForRequest(const GURL& url,
AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry,
- bool* found_network_namespace) {
- return; // TODO(michaeln): write me
- }
+ GURL* found_fallback_namespace, bool* found_network_namespace);
+
private:
friend class AppCacheGroup;
friend class AppCacheHost;
@@ -91,6 +90,10 @@ class AppCache : public base::RefCounted<AppCache> {
// Use AppCacheGroup::Add/RemoveCache() to manipulate owning group.
void set_owning_group(AppCacheGroup* group) { owning_group_ = group; }
+ // FindResponseForRequest helpers
+ FallbackNamespace* FindFallbackNamespace(const GURL& url);
+ bool IsInNetworkNamespace(const GURL& url);
+
// Use AppCacheHost::AssociateCache() to manipulate host association.
void AssociateHost(AppCacheHost* host) {
associated_hosts_.insert(host);