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

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

Issue 1048053002: [BackgroundSync] Handle storage failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@background_sync
Patch Set: Address comments from PS5 Created 5 years, 9 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_scheduler.h
diff --git a/content/browser/cache_storage/cache_storage_scheduler.h b/content/browser/cache_storage/cache_storage_scheduler.h
index 32e7617de00cd696f3a674eeebe8ee1038d6bcf4..dec6cbe72954b68847e90eb1c6d1ad44cffaaefe 100644
--- a/content/browser/cache_storage/cache_storage_scheduler.h
+++ b/content/browser/cache_storage/cache_storage_scheduler.h
@@ -12,6 +12,14 @@
namespace content {
+// TODO(jkarlin): Support readers and writers so operations can run in parallel.
+// TODO(jkarlin): Support operation identification so that ops can be checked in
+// DCHECKs.
+
+// CacheStorageScheduler runs the scheduled callbacks sequentially. Add an
+// operation by calling ScheduleOperation() with your callback. Once your
+// operation is done be sure to call CompleteOperationAndRunNext() to schedule
+// the next operation.
class CONTENT_EXPORT CacheStorageScheduler {
public:
CacheStorageScheduler();

Powered by Google App Engine
This is Rietveld 408576698