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

Side by Side Diff: content/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: Created 5 years, 7 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
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698