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

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

Issue 1248003004: CacheStorage: Implement Cache.matchAll() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replace ScopedVector<BlobDataHandle> with scoped_ptr<std::vector<BlobDataHandle>> Created 5 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.h
diff --git a/content/browser/cache_storage/cache_storage_dispatcher_host.h b/content/browser/cache_storage/cache_storage_dispatcher_host.h
index 8691a9cfde9034bcb2a352dae824b7a8739f1509..966d46125775c48ccb1d7b0084d2edf7a3059bd1 100644
--- a/content/browser/cache_storage/cache_storage_dispatcher_host.h
+++ b/content/browser/cache_storage/cache_storage_dispatcher_host.h
@@ -113,6 +113,20 @@ class CONTENT_EXPORT CacheStorageDispatcherHost : public BrowserMessageFilter {
CacheStorageError error,
scoped_ptr<ServiceWorkerResponse> response,
scoped_ptr<storage::BlobDataHandle> blob_data_handle);
+ void OnCacheMatchAllCallbackAdapter(
+ int thread_id,
+ int request_id,
+ const scoped_refptr<CacheStorageCache>& cache,
+ CacheStorageError error,
+ scoped_ptr<ServiceWorkerResponse> response,
+ scoped_ptr<storage::BlobDataHandle> blob_data_handle);
+ void OnCacheMatchAllCallback(
+ int thread_id,
+ int request_id,
+ const scoped_refptr<CacheStorageCache>& cache,
+ CacheStorageError error,
+ scoped_ptr<std::vector<ServiceWorkerResponse>> responses,
+ scoped_ptr<CacheStorageCache::BlobDataHandles> blob_data_handles);
void OnCacheMatchAll(int thread_id,
int request_id,
int cache_id,
@@ -136,9 +150,8 @@ class CONTENT_EXPORT CacheStorageDispatcherHost : public BrowserMessageFilter {
// Stores blob handles while waiting for acknowledgement of receipt from the
// renderer.
- void StoreBlobDataHandle(
- scoped_ptr<storage::BlobDataHandle> blob_data_handle);
- void DropBlobDataHandle(std::string uuid);
+ void StoreBlobDataHandle(const storage::BlobDataHandle& blob_data_handle);
+ void DropBlobDataHandle(const std::string& uuid);
IDToCacheMap id_to_cache_map_;
CacheID next_cache_id_ = 0;

Powered by Google App Engine
This is Rietveld 408576698