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

Unified Diff: content/child/background_sync/background_sync_provider_thread_proxy.h

Issue 1282013004: BackgroundSyncManager tracks client registrations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed test Created 5 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
Index: content/child/background_sync/background_sync_provider_thread_proxy.h
diff --git a/content/child/background_sync/background_sync_provider_thread_proxy.h b/content/child/background_sync/background_sync_provider_thread_proxy.h
index 7b6e8fe0e80a71f71c10953885f4edd3f6fd0c90..9971909077988f495007c46a92d8abe952e9bc90 100644
--- a/content/child/background_sync/background_sync_provider_thread_proxy.h
+++ b/content/child/background_sync/background_sync_provider_thread_proxy.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "content/child/worker_task_runner.h"
+#include "content/common/background_sync_service.mojom.h"
#include "content/public/child/worker_thread.h"
#include "third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h"
@@ -57,6 +58,14 @@ class BackgroundSyncProviderThreadProxy : public blink::WebSyncProvider,
blink::WebSyncRegistration::Periodicity periodicity,
blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebSyncGetPermissionStatusCallbacks* callbacks);
+ void releaseRegistration(int64_t handle_id);
+
+ // Given |handle_id|, ask the provider for a new handle with the same
+ // underlying registration.
+ void DuplicateRegistrationHandle(
+ int64 handle_id,
+ const BackgroundSyncService::DuplicateRegistrationHandleCallback&
+ callback);
// WorkerThread::Observer implementation.
void WillStopCurrentWorkerThread() override;

Powered by Google App Engine
This is Rietveld 408576698