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

Unified Diff: webkit/appcache/appcache_url_request_job.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_url_request_job.h ('k') | webkit/appcache/appcache_url_request_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_url_request_job.cc
===================================================================
--- webkit/appcache/appcache_url_request_job.cc (revision 106339)
+++ webkit/appcache/appcache_url_request_job.cc (working copy)
@@ -26,7 +26,7 @@
: net::URLRequestJob(request), storage_(storage),
has_been_started_(false), has_been_killed_(false),
delivery_type_(AWAITING_DELIVERY_ORDERS),
- cache_id_(kNoCacheId), is_fallback_(false),
+ group_id_(0), cache_id_(kNoCacheId), is_fallback_(false),
cache_entry_not_found_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(read_callback_(
this, &AppCacheURLRequestJob::OnReadComplete)),
@@ -40,12 +40,13 @@
}
void AppCacheURLRequestJob::DeliverAppCachedResponse(
- const GURL& manifest_url, int64 cache_id, const AppCacheEntry& entry,
- bool is_fallback) {
+ const GURL& manifest_url, int64 group_id, int64 cache_id,
+ const AppCacheEntry& entry, bool is_fallback) {
DCHECK(!has_delivery_orders());
DCHECK(entry.has_response_id());
delivery_type_ = APPCACHED_DELIVERY;
manifest_url_ = manifest_url;
+ group_id_ = group_id;
cache_id_ = cache_id;
entry_ = entry;
is_fallback_ = is_fallback;
@@ -105,7 +106,8 @@
net::NetLog::TYPE_APPCACHE_DELIVERING_FALLBACK_RESPONSE :
net::NetLog::TYPE_APPCACHE_DELIVERING_CACHED_RESPONSE,
NULL);
- storage_->LoadResponseInfo(manifest_url_, entry_.response_id(), this);
+ storage_->LoadResponseInfo(
+ manifest_url_, group_id_, entry_.response_id(), this);
break;
default:
@@ -120,8 +122,8 @@
scoped_refptr<AppCacheURLRequestJob> protect(this);
if (response_info) {
info_ = response_info;
- reader_.reset(
- storage_->CreateResponseReader(manifest_url_, entry_.response_id()));
+ reader_.reset(storage_->CreateResponseReader(
+ manifest_url_, group_id_, entry_.response_id()));
if (is_range_request())
SetupRangeResponse();
« no previous file with comments | « webkit/appcache/appcache_url_request_job.h ('k') | webkit/appcache/appcache_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698