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

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

Issue 1282013004: BackgroundSyncManager tracks client registrations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS12 Created 5 years, 4 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.cc
diff --git a/content/child/background_sync/background_sync_provider_thread_proxy.cc b/content/child/background_sync/background_sync_provider_thread_proxy.cc
index 90584bfc8380a6d31a2280ddd33303e83e52439a..8dc397e8a9967209ba544b0b5926a3f87521aab3 100644
--- a/content/child/background_sync/background_sync_provider_thread_proxy.cc
+++ b/content/child/background_sync/background_sync_provider_thread_proxy.cc
@@ -170,6 +170,19 @@ void BackgroundSyncProviderThreadProxy::getPermissionStatus(
WorkerTaskRunner::Instance()->CurrentWorkerId())));
}
+void BackgroundSyncProviderThreadProxy::trackRegistration(
+ blink::WebSyncRegistration* registration) {
+ main_thread_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&BackgroundSyncProvider::trackRegistration,
+ base::Unretained(sync_provider_), registration));
+}
+
+void BackgroundSyncProviderThreadProxy::releaseRegistration(int64_t sync_id) {
+ main_thread_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&BackgroundSyncProvider::releaseRegistration,
+ base::Unretained(sync_provider_), sync_id));
+}
+
void BackgroundSyncProviderThreadProxy::OnWorkerRunLoopStopped() {
delete this;
}

Powered by Google App Engine
This is Rietveld 408576698