| 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();
|
|
|