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

Unified Diff: content/browser/cache_storage/cache_storage.h

Issue 2242883002: [CacheStorage] Use QueryCache everywhere (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.h
diff --git a/content/browser/cache_storage/cache_storage.h b/content/browser/cache_storage/cache_storage.h
index 3221dc7a849e2bd98278762d06a122f0b8dba899..ea9234b6bb63c36295155d072470519289bfbfce 100644
--- a/content/browser/cache_storage/cache_storage.h
+++ b/content/browser/cache_storage/cache_storage.h
@@ -91,6 +91,7 @@ class CONTENT_EXPORT CacheStorage {
// Calls match on the cache with the given |cache_name|.
void MatchCache(const std::string& cache_name,
std::unique_ptr<ServiceWorkerFetchRequest> request,
+ const CacheStorageCacheQueryParams& match_params,
const CacheStorageCache::ResponseCallback& callback);
// Calls match on all of the caches in parallel, calling |callback| with the
@@ -98,6 +99,8 @@ class CONTENT_EXPORT CacheStorage {
// entry. If no response is found then |callback| is called with
// CACHE_STORAGE_ERROR_NOT_FOUND.
void MatchAllCaches(std::unique_ptr<ServiceWorkerFetchRequest> request,
+ const CacheStorageCacheQueryParams& match_params,
+
nhiroki 2016/08/18 00:05:42 nit: blank line
jkarlin 2016/08/18 14:08:23 Thanks, I would have thought git cl format would h
const CacheStorageCache::ResponseCallback& callback);
// Sums the sizes of each cache and closes them. Runs |callback| with the
@@ -174,6 +177,7 @@ class CONTENT_EXPORT CacheStorage {
// The MatchCache callbacks are below.
void MatchCacheImpl(const std::string& cache_name,
std::unique_ptr<ServiceWorkerFetchRequest> request,
+ const CacheStorageCacheQueryParams& match_params,
const CacheStorageCache::ResponseCallback& callback);
void MatchCacheDidMatch(std::unique_ptr<CacheStorageCacheHandle> cache_handle,
const CacheStorageCache::ResponseCallback& callback,
@@ -183,6 +187,8 @@ class CONTENT_EXPORT CacheStorage {
// The MatchAllCaches callbacks are below.
void MatchAllCachesImpl(std::unique_ptr<ServiceWorkerFetchRequest> request,
+ const CacheStorageCacheQueryParams& match_params,
+
nhiroki 2016/08/18 00:05:42 nit: blank line
jkarlin 2016/08/18 14:08:23 Done.
const CacheStorageCache::ResponseCallback& callback);
void MatchAllCachesDidMatch(
std::unique_ptr<CacheStorageCacheHandle> cache_handle,
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage.cc » ('j') | content/browser/cache_storage/cache_storage.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698