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

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

Issue 867903005: [ServiceWorkerCache] Serialize ServiceWorkerCacheStorage operations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS3 Created 5 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache.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.h
diff --git a/content/browser/service_worker/service_worker_cache.h b/content/browser/service_worker/service_worker_cache.h
index 84e4b6de8bb9e5aeb2088539dc42f4ef02d58b44..a12a324c9c09ad6a0193742ce517dd4fd4cfd3ff 100644
--- a/content/browser/service_worker/service_worker_cache.h
+++ b/content/browser/service_worker/service_worker_cache.h
@@ -30,6 +30,7 @@ class QuotaManagerProxy;
namespace content {
class ChromeBlobStorageContext;
class ServiceWorkerCacheMetadata;
+class ServiceWorkerCacheScheduler;
class TestServiceWorkerCache;
// Represents a ServiceWorker Cache as seen in
@@ -182,8 +183,6 @@ class CONTENT_EXPORT ServiceWorkerCache
void InitBackend();
void InitDone(ErrorType error);
- void CompleteOperationAndRunNext();
- void RunOperationIfIdle();
void PendingClosure(const base::Closure& callback);
void PendingErrorCallback(const ErrorCallback& callback, ErrorType error);
void PendingResponseCallback(
@@ -204,8 +203,7 @@ class CONTENT_EXPORT ServiceWorkerCache
scoped_refptr<storage::QuotaManagerProxy> quota_manager_proxy_;
base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
BackendState backend_state_;
- std::list<base::Closure> pending_operations_;
- bool operation_running_;
+ scoped_ptr<ServiceWorkerCacheScheduler> scheduler_;
bool initializing_;
// Whether or not to store data in disk or memory.
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698