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

Unified Diff: content/browser/cache_storage/cache_storage_dispatcher_host.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
Index: content/browser/cache_storage/cache_storage_dispatcher_host.cc
diff --git a/content/browser/cache_storage/cache_storage_dispatcher_host.cc b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
index f8630f6ce7bab5c4b64634edb9ba23efa3479226..398ce5b7f767b0d5fca35834e362d8bea20edc29 100644
--- a/content/browser/cache_storage/cache_storage_dispatcher_host.cc
+++ b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
@@ -158,7 +158,7 @@ void CacheStorageDispatcherHost::OnCacheStorageMatch(
scoped_ptr<ServiceWorkerFetchRequest> scoped_request(
new ServiceWorkerFetchRequest(request.url, request.method,
request.headers, request.referrer,
- request.is_reload));
+ request.is_reload, request.client));
if (match_params.cache_name.empty()) {
context_->cache_manager()->MatchAllCaches(
@@ -190,7 +190,7 @@ void CacheStorageDispatcherHost::OnCacheMatch(
scoped_ptr<ServiceWorkerFetchRequest> scoped_request(
new ServiceWorkerFetchRequest(request.url, request.method,
request.headers, request.referrer,
- request.is_reload));
+ request.is_reload, request.client));
cache->Match(scoped_request.Pass(),
base::Bind(&CacheStorageDispatcherHost::OnCacheMatchCallback,
this, thread_id, request_id, cache));
@@ -378,7 +378,7 @@ void CacheStorageDispatcherHost::OnCacheKeysCallback(
for (CacheStorageCache::Requests::const_iterator it = requests->begin();
it != requests->end(); ++it) {
ServiceWorkerFetchRequest request(it->url, it->method, it->headers,
- it->referrer, it->is_reload);
+ it->referrer, it->is_reload, it->client);
out.push_back(request);
}

Powered by Google App Engine
This is Rietveld 408576698