OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module content.background_sync; | |
jkarlin
2015/04/27 18:25:11
I'd remove the namespace, and see comments below a
iclelland
2015/04/28 12:41:30
Done.
| |
6 | |
7 enum SyncNetworkState { | |
8 Any, | |
9 AvoidCellular, | |
10 Online, | |
jkarlin
2015/04/27 18:25:11
These files are in chromium code and should use ch
iclelland
2015/04/28 12:41:30
The mojo bindings generator already prefixes these
| |
11 }; | |
12 | |
13 enum SyncPowerState { | |
14 Auto, | |
15 AvoidDraining, | |
jkarlin
2015/04/27 18:25:11
SYNC_POWER_STATE_AUTO and SYNC_POWER_STATE_DRAININ
iclelland
2015/04/28 12:41:30
Done, as noted above (BACKGROUND_SYNC_POWER_STATE_
| |
16 }; | |
17 | |
18 enum SyncPeriodicity { | |
19 Periodic, | |
jkarlin
2015/04/27 18:25:11
SYNC_PERIODICITY_PERIODIC and SYNC_PERIODICITY_ONE
iclelland
2015/04/28 12:41:30
Done, as noted above (BACKGROUND_SYNC_PERIODICITY_
| |
20 OneShot, | |
21 }; | |
22 | |
23 struct SyncRegistration { | |
24 int64 id = -1; | |
25 SyncPeriodicity periodicity = OneShot; | |
26 string tag = ""; | |
27 uint64 minPeriodMs = 0; | |
jkarlin
2015/04/27 18:25:11
min_period_ms
iclelland
2015/04/28 12:41:30
Done.
| |
28 SyncNetworkState networkState = Online; | |
jkarlin
2015/04/27 18:25:11
network_state
iclelland
2015/04/28 12:41:30
Done.
| |
29 SyncPowerState powerState = Auto; | |
jkarlin
2015/04/27 18:25:11
power_state
iclelland
2015/04/28 12:41:30
Done.
| |
30 }; | |
OLD | NEW |