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

Unified Diff: content/common/background_sync_service.mojom

Issue 1106193002: Add Mojo types and service definitions for Background Sync API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/common/background_sync_service.mojom
diff --git a/content/common/background_sync_service.mojom b/content/common/background_sync_service.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..d5f9623e81360fe801b45831d6948d4a5cdf96f3
--- /dev/null
+++ b/content/common/background_sync_service.mojom
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module content.background_sync;
+
+import "background_sync.mojom";
+
+interface BackgroundSyncService {
+ Register(SyncRegistration options, string origin,
+ int64 serviceWorkerRegistrationId) => (SyncRegistration options);
jkarlin 2015/04/27 18:25:11 service_worker_registration_id here and below
iclelland 2015/04/28 12:41:30 Done.
+ GetRegistration(SyncPeriodicity periodicity, string tag, string origin,
+ int64 serviceWorkerRegistrationId)
+ => (SyncRegistration? registration);
+ GetRegistrations(SyncPeriodicity periodicity, string origin,
+ int64 serviceWorkerRegistrationId)
+ => (array<SyncRegistration> registrations);
+ Unregister(SyncPeriodicity periodicity, int32 id, string tag, string origin,
jkarlin 2015/04/27 18:25:11 int64 id
iclelland 2015/04/28 12:41:30 Done.
+ int64 serviceWorkerRegistrationId) => (bool success);
+};
+
+interface BackgoundSyncServiceClient {
+ Sync(SyncRegistration event);
+};
+

Powered by Google App Engine
This is Rietveld 408576698