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

Unified Diff: content/browser/cache_storage/cache_storage_cache.cc

Issue 1108273002: Add Client Attribute to FetchEvent- Chromium Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | content/browser/cache_storage/cache_storage_cache_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/cache_storage/cache_storage_cache.cc
diff --git a/content/browser/cache_storage/cache_storage_cache.cc b/content/browser/cache_storage/cache_storage_cache.cc
index 43737590ee9e623cb06cf61829947c37f73cf3cb..b0f0332fac955c0f2c926f2f35f250ea0951fbdd 100644
--- a/content/browser/cache_storage/cache_storage_cache.cc
+++ b/content/browser/cache_storage/cache_storage_cache.cc
@@ -764,7 +764,7 @@ void CacheStorageCache::Put(const CacheStorageBatchOperation& operation,
scoped_ptr<ServiceWorkerFetchRequest> request(new ServiceWorkerFetchRequest(
operation.request.url, operation.request.method,
operation.request.headers, operation.request.referrer,
- operation.request.is_reload));
+ operation.request.is_reload, operation.request.client));
// We don't support streaming for cache.
DCHECK(operation.response.stream_url.is_empty());
@@ -979,7 +979,7 @@ void CacheStorageCache::Delete(const CacheStorageBatchOperation& operation,
scoped_ptr<ServiceWorkerFetchRequest> request(new ServiceWorkerFetchRequest(
operation.request.url, operation.request.method,
operation.request.headers, operation.request.referrer,
- operation.request.is_reload));
+ operation.request.is_reload, operation.request.client));
ErrorCallback pending_callback =
base::Bind(&CacheStorageCache::PendingErrorCallback,
@@ -1138,7 +1138,8 @@ void CacheStorageCache::KeysDidReadMetadata(
if (metadata) {
keys_context->out_keys->push_back(ServiceWorkerFetchRequest(
GURL(entry->GetKey()), metadata->request().method(),
- ServiceWorkerHeaderMap(), Referrer(), false));
+ ServiceWorkerHeaderMap(), Referrer(), false,
+ ServiceWorkerClientInfo()));
ServiceWorkerHeaderMap& req_headers =
keys_context->out_keys->back().headers;
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698