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

Unified Diff: content/browser/service_worker/service_worker_cache_listener.h

Issue 580063003: Stitch ServiceWorkerCache between renderer and browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gavin_code
Patch Set: Address comments from PS7 Created 6 years, 3 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_cache_listener.h
diff --git a/content/browser/service_worker/service_worker_cache_listener.h b/content/browser/service_worker/service_worker_cache_listener.h
index 4f1f4a485644d0bbfb9d4fe7575478adde190ff3..949051d69377da85269fa4726a3a55fc510e45d7 100644
--- a/content/browser/service_worker/service_worker_cache_listener.h
+++ b/content/browser/service_worker/service_worker_cache_listener.h
@@ -8,6 +8,7 @@
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "content/browser/service_worker/embedded_worker_instance.h"
+#include "content/browser/service_worker/service_worker_cache.h"
#include "content/browser/service_worker/service_worker_cache_storage.h"
namespace content {
@@ -63,6 +64,7 @@ class ServiceWorkerCacheListener : public EmbeddedWorkerInstance::Listener {
void Send(const IPC::Message& message);
+ // CacheStorageManager callbacks
void OnCacheStorageGetCallback(
int request_id,
const scoped_refptr<ServiceWorkerCache>& cache,
@@ -84,6 +86,22 @@ class ServiceWorkerCacheListener : public EmbeddedWorkerInstance::Listener {
const std::vector<std::string>& strings,
ServiceWorkerCacheStorage::CacheStorageError error);
+ // Cache callbacks
+ void OnCacheMatchCallback(
+ int request_id,
+ ServiceWorkerCache::ErrorType error,
+ scoped_ptr<ServiceWorkerResponse> response,
+ scoped_ptr<storage::BlobDataHandle> blob_data_handle);
+ void OnCacheKeysCallback(int request_id,
+ ServiceWorkerCache::ErrorType error,
+ scoped_ptr<ServiceWorkerCache::Requests> requests);
+ void OnCacheDeleteCallback(int request_id,
+ ServiceWorkerCache::ErrorType error);
+ void OnCachePutCallback(int request_id,
+ ServiceWorkerCache::ErrorType error,
+ scoped_ptr<ServiceWorkerResponse> response,
+ scoped_ptr<storage::BlobDataHandle> blob_data_handle);
+
// Hangs onto a scoped_refptr for the cache if it isn't already doing so.
// Returns a unique cache_id. Call DropCacheReference when the client is done
// with this cache.
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698