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

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

Issue 1106523002: [BackgroundSync] Fire one-shot sync events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store_origin
Patch Set: Rebase fix 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 | « no previous file | content/browser/background_sync/background_sync_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 895117d463dab27d37174577ae9f41669ac4e031..eb9b4ad229b1f1880bafe9fdc9a42b2f11d8ba08 100644
--- a/content/browser/background_sync/background_sync.proto
+++ b/content/browser/background_sync/background_sync.proto
@@ -24,6 +24,12 @@ enum SyncPeriodicity {
SYNC_ONE_SHOT = 1;
}
+enum SyncState {
+ SYNC_STATE_PENDING = 0;
+ SYNC_STATE_FIRING = 1;
+ SYNC_STATE_FAILED = 2;
+}
+
message BackgroundSyncRegistrationProto {
required int64 id = 1;
required string tag = 2;
@@ -31,6 +37,7 @@ message BackgroundSyncRegistrationProto {
required int64 min_period = 4;
required SyncNetworkState network_state = 5;
required SyncPowerState power_state = 6;
+ required SyncState sync_state = 7;
}
message BackgroundSyncRegistrationsProto {
« no previous file with comments | « no previous file | content/browser/background_sync/background_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698