Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Unified Diff: webkit/appcache/appcache_storage.cc

Issue 8343018: More groundwork for flat file based response storage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/appcache_storage.h ('k') | webkit/appcache/appcache_storage_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_storage.cc
===================================================================
--- webkit/appcache/appcache_storage.cc (revision 106339)
+++ webkit/appcache/appcache_storage.cc (working copy)
@@ -39,10 +39,12 @@
AppCacheStorage::ResponseInfoLoadTask::ResponseInfoLoadTask(
const GURL& manifest_url,
+ int64 group_id,
int64 response_id,
AppCacheStorage* storage)
: storage_(storage),
manifest_url_(manifest_url),
+ group_id_(group_id),
response_id_(response_id),
info_buffer_(new HttpResponseInfoIOBuffer),
ALLOW_THIS_IN_INITIALIZER_LIST(read_callback_(
@@ -58,7 +60,7 @@
if (reader_.get())
return;
reader_.reset(
- storage_->CreateResponseReader(manifest_url_, response_id_));
+ storage_->CreateResponseReader(manifest_url_, group_id_, response_id_));
reader_->ReadInfo(info_buffer_, &read_callback_);
}
@@ -76,15 +78,16 @@
}
void AppCacheStorage::LoadResponseInfo(
- const GURL& manifest_url, int64 id, Delegate* delegate) {
+ const GURL& manifest_url, int64 group_id, int64 id, Delegate* delegate) {
AppCacheResponseInfo* info = working_set_.GetResponseInfo(id);
if (info) {
delegate->OnResponseInfoLoaded(info, id);
return;
}
ResponseInfoLoadTask* info_load =
- GetOrCreateResponseInfoLoadTask(manifest_url, id);
+ GetOrCreateResponseInfoLoadTask(manifest_url, group_id, id);
DCHECK(manifest_url == info_load->manifest_url());
+ DCHECK(group_id == info_load->group_id());
DCHECK(id == info_load->response_id());
info_load->AddDelegate(GetOrCreateDelegateReference(delegate));
info_load->StartIfNeeded();
« no previous file with comments | « webkit/appcache/appcache_storage.h ('k') | webkit/appcache/appcache_storage_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698