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

Unified Diff: content/browser/background_sync/background_sync_manager.h

Issue 2167483002: [CacheStorage] Simpler way to wrap callbacks to run pending operation completions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment clarification Created 4 years, 5 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/background_sync/background_sync_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_sync/background_sync_manager.h
diff --git a/content/browser/background_sync/background_sync_manager.h b/content/browser/background_sync/background_sync_manager.h
index 9b8b77396bc2bb8008316f1740d83fd5a9a68697..52391a20f5b05b7063f4cbe804c4e747bdbe7e9e 100644
--- a/content/browser/background_sync/background_sync_manager.h
+++ b/content/browser/background_sync/background_sync_manager.h
@@ -285,26 +285,7 @@ class CONTENT_EXPORT BackgroundSyncManager
void SetMaxSyncAttemptsImpl(int max_sync_attempts,
const base::Closure& callback);
- // Operation Scheduling callback and convenience functions.
- template <typename CallbackT, typename... Params>
- void CompleteOperationCallback(const CallbackT& callback,
- Params... parameters);
- void CompleteStatusAndRegistrationCallback(
- StatusAndRegistrationCallback callback,
- BackgroundSyncStatus status,
- std::unique_ptr<BackgroundSyncRegistration> registration);
- void CompleteStatusAndRegistrationsCallback(
- StatusAndRegistrationsCallback callback,
- BackgroundSyncStatus status,
- std::unique_ptr<ScopedVector<BackgroundSyncRegistration>> registrations);
base::Closure MakeEmptyCompletion();
- base::Closure MakeClosureCompletion(const base::Closure& callback);
- StatusAndRegistrationCallback MakeStatusAndRegistrationCompletion(
- const StatusAndRegistrationCallback& callback);
- StatusAndRegistrationsCallback MakeStatusAndRegistrationsCompletion(
- const StatusAndRegistrationsCallback& callback);
- BackgroundSyncManager::StatusCallback MakeStatusCompletion(
- const StatusCallback& callback);
SWIdToRegistrationsMap active_registrations_;
CacheStorageScheduler op_scheduler_;
« no previous file with comments | « no previous file | content/browser/background_sync/background_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698