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

Unified Diff: content/browser/background_sync/background_sync.proto

Issue 1068863002: [BackgroundSync] Add new registration options from the spec (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/browser/background_sync/background_sync.proto
diff --git a/content/browser/background_sync/background_sync.proto b/content/browser/background_sync/background_sync.proto
index 46cc136d0286aac4cab5b29619f1dcc2a70eacb8..4f93d971d4ae16d1c03aae232f7e5f595c1b6975 100644
--- a/content/browser/background_sync/background_sync.proto
+++ b/content/browser/background_sync/background_sync.proto
@@ -8,10 +8,24 @@ option optimize_for = LITE_RUNTIME;
package content;
+enum SyncNetworkState {
+ NETWORK_STATE_ANY = 0;
+ NETWORK_STATE_AVOID_CELLULAR = 1;
+ NETWORK_STATE_ONLINE = 2;
+}
+
+enum SyncPowerState {
+ POWER_STATE_AUTO = 0;
+ POWER_STATE_AVOID_DRAINING = 1;
+}
+
message BackgroundSyncRegistrationProto {
required int64 id = 1;
required string name = 2;
- optional int64 min_period = 3;
+ required bool fire_once = 3;
+ required int64 min_period = 4;
+ required SyncNetworkState network_state = 5;
+ required SyncPowerState power_state = 6;
}
message BackgroundSyncRegistrationsProto {

Powered by Google App Engine
This is Rietveld 408576698