| OLD | NEW |
| 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 SyncPeriodicity { | |
| 18 SYNC_PERIODIC = 0; | |
| 19 SYNC_ONE_SHOT = 1; | |
| 20 } | |
| 21 | |
| 22 message BackgroundSyncRegistrationProto { | 17 message BackgroundSyncRegistrationProto { |
| 23 required int64 id = 1; | 18 required int64 id = 1; |
| 24 required string tag = 2; | 19 required string tag = 2; |
| 25 required SyncPeriodicity periodicity = 3; | 20 // required SyncPeriodicity periodicity = 3; |
| 26 required int64 min_period = 4; | 21 // required int64 min_period = 4; |
| 27 required SyncNetworkState network_state = 5; | 22 required SyncNetworkState network_state = 5; |
| 28 // required SyncPowerState power_state = 6; | 23 // required SyncPowerState power_state = 6; |
| 29 required int32 num_attempts = 7; | 24 required int32 num_attempts = 7; |
| 30 required int64 delay_until = 8; | 25 required int64 delay_until = 8; |
| 31 } | 26 } |
| 32 | 27 |
| 33 message BackgroundSyncRegistrationsProto { | 28 message BackgroundSyncRegistrationsProto { |
| 34 repeated BackgroundSyncRegistrationProto registration = 1; | 29 repeated BackgroundSyncRegistrationProto registration = 1; |
| 35 required int64 next_registration_id = 2; | 30 required int64 next_registration_id = 2; |
| 36 required string origin = 3; | 31 required string origin = 3; |
| 37 } | 32 } |
| OLD | NEW |