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

Unified Diff: content/public/common/background_sync.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/public/common/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/background_sync.mojom
diff --git a/content/public/common/background_sync.mojom b/content/public/common/background_sync.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..8d3bdd22ef7789b2f0a91cc0d8df8984967449c8
--- /dev/null
+++ b/content/public/common/background_sync.mojom
@@ -0,0 +1,33 @@
+// 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;
+
+enum BackgroundSyncNetworkState {
+ ANY,
+ AVOID_CELLULAR,
+ ONLINE,
+ MAX=ONLINE
+};
+
+enum BackgroundSyncPowerState {
+ AUTO,
+ AVOID_DRAINING,
+ MAX=AVOID_DRAINING
+};
+
+enum BackgroundSyncPeriodicity {
+ PERIODIC,
+ ONE_SHOT,
+ MAX=ONE_SHOT
+};
+
+struct SyncRegistration {
+ int64 id = -1;
+ BackgroundSyncPeriodicity periodicity = ONE_SHOT;
+ string tag = "";
+ uint64 min_period_ms = 0;
+ BackgroundSyncNetworkState network_state = ONLINE;
+ BackgroundSyncPowerState power_state = AUTO;
+};
« no previous file with comments | « content/public/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698