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

Unified Diff: third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom

Issue 1960843002: [OnionSoup] Move background_sync.mojom from //content to //third_party/WebKit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address dcheng@'s comment Created 4 years, 7 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: third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom
diff --git a/content/common/background_sync_service.mojom b/third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom
similarity index 74%
rename from content/common/background_sync_service.mojom
rename to third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom
index cceb58c31b30bf3bf08d8505d30e10a376b27a1e..15c1c59a9b6980f46fdb0eafb737aec552135727 100644
--- a/content/common/background_sync_service.mojom
+++ b/third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom
@@ -2,10 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module content.mojom;
+module blink.mojom;
-import "content/public/common/background_sync.mojom";
-import "content/public/common/service_worker_event_status.mojom";
+import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_event_status.mojom";
+
+enum BackgroundSyncNetworkState {
+ ANY,
+ AVOID_CELLULAR,
+ ONLINE,
+ MAX=ONLINE
+};
+
+struct SyncRegistration {
+ int64 id = -1;
+ string tag = "";
+ BackgroundSyncNetworkState network_state = ONLINE;
+};
enum BackgroundSyncError {
NONE,
@@ -39,4 +51,3 @@ interface BackgroundSyncServiceClient {
Sync(string tag, BackgroundSyncEventLastChance last_chance)
=> (ServiceWorkerEventStatus status);
};
-

Powered by Google App Engine
This is Rietveld 408576698