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.
7 option optimize_for = LITE_RUNTIME;
11 enum SyncNetworkState {
12 NETWORK_STATE_ANY = 0;
13 NETWORK_STATE_AVOID_CELLULAR = 1;
14 NETWORK_STATE_ONLINE = 2;
19 POWER_STATE_AVOID_DRAINING = 1;
22 enum SyncPeriodicity {
27 message BackgroundSyncRegistrationProto {
28 required int64 id = 1;
29 required string tag = 2;
30 required SyncPeriodicity periodicity = 3;
31 required int64 min_period = 4;
32 required SyncNetworkState network_state = 5;
33 required SyncPowerState power_state = 6;
36 message BackgroundSyncRegistrationsProto {
37 repeated BackgroundSyncRegistrationProto registration = 1;
38 required int64 next_registration_id = 2;
39 required string origin = 3;