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

Side by Side Diff: content/browser/background_sync/background_sync.proto

Issue 1348603003: [BackgroundSync] Move BackgroundSyncState from proto to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android fix Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/background_sync/background_sync_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package content; 9 package content;
10 10
11 enum SyncNetworkState { 11 enum SyncNetworkState {
12 NETWORK_STATE_ANY = 0; 12 NETWORK_STATE_ANY = 0;
13 NETWORK_STATE_AVOID_CELLULAR = 1; 13 NETWORK_STATE_AVOID_CELLULAR = 1;
14 NETWORK_STATE_ONLINE = 2; 14 NETWORK_STATE_ONLINE = 2;
15 } 15 }
16 16
17 enum SyncPowerState { 17 enum SyncPowerState {
18 POWER_STATE_AUTO = 0; 18 POWER_STATE_AUTO = 0;
19 POWER_STATE_AVOID_DRAINING = 1; 19 POWER_STATE_AVOID_DRAINING = 1;
20 } 20 }
21 21
22 enum SyncPeriodicity { 22 enum SyncPeriodicity {
23 SYNC_PERIODIC = 0; 23 SYNC_PERIODIC = 0;
24 SYNC_ONE_SHOT = 1; 24 SYNC_ONE_SHOT = 1;
25 } 25 }
26 26
27 enum SyncState {
28 SYNC_STATE_PENDING = 0;
29 SYNC_STATE_FIRING = 1;
30 SYNC_STATE_FAILED = 2;
31 }
32
33 message BackgroundSyncRegistrationProto { 27 message BackgroundSyncRegistrationProto {
34 required int64 id = 1; 28 required int64 id = 1;
35 required string tag = 2; 29 required string tag = 2;
36 required SyncPeriodicity periodicity = 3; 30 required SyncPeriodicity periodicity = 3;
37 required int64 min_period = 4; 31 required int64 min_period = 4;
38 required SyncNetworkState network_state = 5; 32 required SyncNetworkState network_state = 5;
39 required SyncPowerState power_state = 6; 33 required SyncPowerState power_state = 6;
40 required SyncState sync_state = 7;
41 } 34 }
42 35
43 message BackgroundSyncRegistrationsProto { 36 message BackgroundSyncRegistrationsProto {
44 repeated BackgroundSyncRegistrationProto registration = 1; 37 repeated BackgroundSyncRegistrationProto registration = 1;
45 required int64 next_registration_id = 2; 38 required int64 next_registration_id = 2;
46 required string origin = 3; 39 required string origin = 3;
47 } 40 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/background_sync/background_sync_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698