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

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

Issue 1719103002: CacheStorage: Expand cache.keys() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 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 c34259ffc8e5c1cdb4ae1dc54f7c09a9a5849360..7d1d2293df9ac4ede10223192d6de246ef67d565 100644
--- a/content/browser/cache_storage/cache_storage_dispatcher_host.cc
+++ b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
@@ -293,9 +293,14 @@ void CacheStorageDispatcherHost::OnCacheKeys(
}
CacheStorageCache* cache = it->second->value();
- cache->Keys(base::Bind(&CacheStorageDispatcherHost::OnCacheKeysCallback, this,
- thread_id, request_id,
- base::Passed(it->second->Clone())));
+ std::unique_ptr<ServiceWorkerFetchRequest> request_ptr(
+ new ServiceWorkerFetchRequest(request.url, request.method,
+ request.headers, request.referrer,
+ request.is_reload));
+ cache->Keys(
+ std::move(request_ptr), match_params,
+ base::Bind(&CacheStorageDispatcherHost::OnCacheKeysCallback, this,
+ thread_id, request_id, base::Passed(it->second->Clone())));
}
void CacheStorageDispatcherHost::OnCacheBatch(

Powered by Google App Engine
This is Rietveld 408576698