diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 01:45:09 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 01:45:09 +0000 |
commit | d144b0590e00629570c3f729b1d0baf048dc1d45 (patch) | |
tree | d25a1d6c65206140be31495625fb2895f7cebaf0 /webkit/appcache/appcache_working_set.cc | |
parent | fd9c35f41bcab4966a5db8d24de812b1e9f87967 (diff) | |
download | chromium_src-d144b0590e00629570c3f729b1d0baf048dc1d45.zip chromium_src-d144b0590e00629570c3f729b1d0baf048dc1d45.tar.gz chromium_src-d144b0590e00629570c3f729b1d0baf048dc1d45.tar.bz2 |
Add some unimplemented methods from my last CL.
TEST=yes, appcache_storage_unittest.cc
BUG=none
Review URL: http://codereview.chromium.org/266042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28772 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_working_set.cc')
-rw-r--r-- | webkit/appcache/appcache_working_set.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_working_set.cc b/webkit/appcache/appcache_working_set.cc index a5b544f..9b67942 100644 --- a/webkit/appcache/appcache_working_set.cc +++ b/webkit/appcache/appcache_working_set.cc @@ -7,6 +7,7 @@ #include "base/logging.h" #include "webkit/appcache/appcache.h" #include "webkit/appcache/appcache_group.h" +#include "webkit/appcache/appcache_response.h" namespace appcache { @@ -35,4 +36,14 @@ void AppCacheWorkingSet::RemoveGroup(AppCacheGroup* group) { groups_.erase(group->manifest_url()); } +void AppCacheWorkingSet::AddResponseInfo(AppCacheResponseInfo* info) { + int64 response_id = info->response_id(); + DCHECK(response_infos_.find(response_id) == response_infos_.end()); + response_infos_.insert(ResponseInfoMap::value_type(response_id, info)); +} + +void AppCacheWorkingSet::RemoveResponseInfo(AppCacheResponseInfo* info) { + response_infos_.erase(info->response_id()); +} + } // namespace |