diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 03:25:51 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 03:25:51 +0000 |
commit | e7dff7bae2779884b62dc3c7f8bd40a4987627f1 (patch) | |
tree | cfc42a36432847e42eabf716cc56bc2365ed10a4 /webkit/appcache/appcache_host.h | |
parent | 55e9c25f48d8d99cc0433258b44f6e96011a63cd (diff) | |
download | chromium_src-e7dff7bae2779884b62dc3c7f8bd40a4987627f1.zip chromium_src-e7dff7bae2779884b62dc3c7f8bd40a4987627f1.tar.gz chromium_src-e7dff7bae2779884b62dc3c7f8bd40a4987627f1.tar.bz2 |
AppCache StorageAPIs
TEST=none yet, these are just API definitions stubbed out for now
BUG=none
Review URL: http://codereview.chromium.org/209071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_host.h')
-rw-r--r-- | webkit/appcache/appcache_host.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/webkit/appcache/appcache_host.h b/webkit/appcache/appcache_host.h index 9b7db30..5be3c5c 100644 --- a/webkit/appcache/appcache_host.h +++ b/webkit/appcache/appcache_host.h @@ -8,12 +8,12 @@ #include "base/observer_list.h" #include "base/ref_counted.h" #include "base/task.h" -#include "base/weak_ptr.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest_prod.h" #include "webkit/appcache/appcache.h" #include "webkit/appcache/appcache_interfaces.h" #include "webkit/appcache/appcache_service.h" +#include "webkit/appcache/appcache_storage.h" class URLRequest; @@ -29,8 +29,7 @@ typedef Callback2<bool, void*>::Type StartUpdateCallback; typedef Callback2<bool, void*>::Type SwapCacheCallback; // Server-side representation of an application cache host. -class AppCacheHost : public base::SupportsWeakPtr<AppCacheHost>, - public AppCacheService::LoadClient { +class AppCacheHost : public AppCacheStorage::Delegate { public: class Observer { @@ -91,10 +90,10 @@ class AppCacheHost : public base::SupportsWeakPtr<AppCacheHost>, void LoadCache(int64 cache_id); void LoadOrCreateGroup(const GURL& manifest_url); - // LoadClient impl - virtual void CacheLoadedCallback(AppCache* cache, int64 cache_id); - virtual void GroupLoadedCallback(AppCacheGroup* group, - const GURL& manifest_url); + // AppCacheStorage::Delegate impl + virtual void OnCacheLoaded(AppCache* cache, int64 cache_id); + virtual void OnGroupLoaded(AppCacheGroup* group, + const GURL& manifest_url); void FinishCacheSelection(AppCache* cache, AppCacheGroup* group); void DoPendingGetStatus(); |