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

Unified Diff: content/renderer/cache_storage/cache_storage_dispatcher.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/renderer/cache_storage/cache_storage_dispatcher.cc
diff --git a/content/renderer/cache_storage/cache_storage_dispatcher.cc b/content/renderer/cache_storage/cache_storage_dispatcher.cc
index a490e4c69b583df306ca1a6e00a3ce61de38c25c..1fefe44a571e1a6651bdeac63d876b80079030ab 100644
--- a/content/renderer/cache_storage/cache_storage_dispatcher.cc
+++ b/content/renderer/cache_storage/cache_storage_dispatcher.cc
@@ -177,7 +177,7 @@ class CacheStorageDispatcher::WebCache : public blink::WebServiceWorkerCache {
query_params);
}
void dispatchKeys(CacheWithRequestsCallbacks* callbacks,
- const blink::WebServiceWorkerRequest* request,
+ const blink::WebServiceWorkerRequest& request,
const QueryParams& query_params) override {
if (!dispatcher_)
return;
@@ -610,15 +610,14 @@ void CacheStorageDispatcher::dispatchMatchAllForCache(
void CacheStorageDispatcher::dispatchKeysForCache(
int cache_id,
blink::WebServiceWorkerCache::CacheWithRequestsCallbacks* callbacks,
- const blink::WebServiceWorkerRequest* request,
+ const blink::WebServiceWorkerRequest& request,
const blink::WebServiceWorkerCache::QueryParams& query_params) {
int request_id = cache_keys_callbacks_.Add(callbacks);
cache_keys_times_[request_id] = base::TimeTicks::Now();
Send(new CacheStorageHostMsg_CacheKeys(
CurrentWorkerId(), request_id, cache_id,
- request ? FetchRequestFromWebRequest(*request)
- : ServiceWorkerFetchRequest(),
+ FetchRequestFromWebRequest(request),
QueryParamsFromWebQueryParams(query_params)));
}

Powered by Google App Engine
This is Rietveld 408576698