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

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: Revert scoped_ptr construction change 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/content_child.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ec4996dda3b5afd79a2c2df68068ddad8876c3a0
--- /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;
+
+import "content/public/common/background_sync.mojom";
+
+interface BackgroundSyncService {
+ Register(SyncRegistration options, int64 service_worker_registration_id)
+ => (SyncRegistration options);
+ GetRegistration(BackgroundSyncPeriodicity periodicity, string tag,
+ int64 service_worker_registration_id)
+ => (SyncRegistration? registration);
+ GetRegistrations(BackgroundSyncPeriodicity periodicity,
+ int64 service_worker_registration_id)
+ => (array<SyncRegistration> registrations);
+ Unregister(BackgroundSyncPeriodicity periodicity, int64 id, string tag,
+ int64 service_worker_registration_id) => (bool success);
+};
+
+interface BackgoundSyncServiceClient {
+ Sync(SyncRegistration event);
+};
+
« no previous file with comments | « content/common/BUILD.gn ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698