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

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: Created 4 years, 10 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 af73b7872768cbbf61278a4ad012b91fa92602ef..607fd9a93252163ceeb9e30ce97b4c6c56e43c33 100644
--- a/content/browser/cache_storage/cache_storage_dispatcher_host.cc
+++ b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
@@ -283,8 +283,13 @@ void CacheStorageDispatcherHost::OnCacheKeys(
}
scoped_refptr<CacheStorageCache> cache = it->second;
+ scoped_ptr<ServiceWorkerFetchRequest> scoped_request(
+ new ServiceWorkerFetchRequest(request.url, request.method,
+ request.headers, request.referrer,
+ request.is_reload));
- cache->Keys(base::Bind(&CacheStorageDispatcherHost::OnCacheKeysCallback, this,
+ cache->Keys(std::move(scoped_request), match_params,
+ base::Bind(&CacheStorageDispatcherHost::OnCacheKeysCallback, this,
thread_id, request_id, cache));
}

Powered by Google App Engine
This is Rietveld 408576698