diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 03:37:22 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 03:37:22 +0000 |
commit | 833a4baa2ccf968616d72361a74852c57f911d96 (patch) | |
tree | 07ccc3df12e7800ef381dd14ca2bda4e8760aa81 /webkit/appcache/appcache_working_set.h | |
parent | 5ac84ca4f92eea80f31b5c7a58e41e35657a69ab (diff) | |
download | chromium_src-833a4baa2ccf968616d72361a74852c57f911d96.zip chromium_src-833a4baa2ccf968616d72361a74852c57f911d96.tar.gz chromium_src-833a4baa2ccf968616d72361a74852c57f911d96.tar.bz2 |
Revert 35328 - AppCacheDatabase and SQL based AppCacheStorageImpl.
Still nothing is being written to disk with this CL,
inmemory SQLite and DiskCaches are being utilized.
Responses are not yet being removed from the DiskCasche
when the should be. Once that's done (in the next CL), we'll
start saving things on disk.
BUG=none
TEST=appcache_database_unittest.cc, appcache_storage_impl_unittest.cc
Review URL: http://codereview.chromium.org/501033
TBR=michaeln@chromium.org
Review URL: http://codereview.chromium.org/519018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_working_set.h')
-rw-r--r-- | webkit/appcache/appcache_working_set.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/webkit/appcache/appcache_working_set.h b/webkit/appcache/appcache_working_set.h index 479e74d..6785d50 100644 --- a/webkit/appcache/appcache_working_set.h +++ b/webkit/appcache/appcache_working_set.h @@ -20,8 +20,6 @@ class AppCacheResponseInfo; // currently in memory. class AppCacheWorkingSet { public: - typedef std::map<GURL, AppCacheGroup*> GroupMap; - ~AppCacheWorkingSet(); void AddCache(AppCache* cache); @@ -38,10 +36,6 @@ class AppCacheWorkingSet { return (it != groups_.end()) ? it->second : NULL; } - const GroupMap* GetGroupsInOrigin(const GURL& origin_url) { - return GetMutableGroupsInOrigin(origin_url); - } - void AddResponseInfo(AppCacheResponseInfo* response_info); void RemoveResponseInfo(AppCacheResponseInfo* response_info); AppCacheResponseInfo* GetResponseInfo(int64 id) { @@ -51,17 +45,10 @@ class AppCacheWorkingSet { private: typedef base::hash_map<int64, AppCache*> CacheMap; - typedef std::map<GURL, GroupMap> GroupsByOriginMap; + typedef std::map<GURL, AppCacheGroup*> GroupMap; typedef base::hash_map<int64, AppCacheResponseInfo*> ResponseInfoMap; - - GroupMap* GetMutableGroupsInOrigin(const GURL& origin_url) { - GroupsByOriginMap::iterator it = groups_by_origin_.find(origin_url); - return (it != groups_by_origin_.end()) ? &it->second : NULL; - } - CacheMap caches_; GroupMap groups_; - GroupsByOriginMap groups_by_origin_; // origin -> (manifest -> group) ResponseInfoMap response_infos_; }; |