Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 syntax = "proto2"; | |
| 6 | |
| 7 option optimize_for = LITE_RUNTIME; | |
| 8 | |
| 9 package protodb; | |
| 10 | |
| 11 // Stores the scheduling params associated with a download request. | |
| 12 message SchedulingParams { | |
| 13 // Network criteria. | |
| 14 enum NetworkRequirements { | |
|
David Trainor- moved to gerrit
2017/05/18 19:41:00
Same as other file, point to where these are in co
shaktisahu
2017/05/19 04:54:57
Done.
| |
| 15 NONE = 0; | |
| 16 OPTIMISTIC = 1; | |
| 17 UNMETERED = 2; | |
| 18 } | |
| 19 | |
| 20 // Battery criteria. | |
| 21 enum BatteryRequirements { | |
| 22 BATTERY_INSENSITIVE = 0; | |
| 23 BATTERY_SENSITIVE = 1; | |
| 24 } | |
| 25 | |
| 26 // Download priority. | |
| 27 enum Priority { | |
| 28 LOW = 0; | |
| 29 NORMAL = 1; | |
| 30 HIGH = 2; | |
| 31 UI = 3; | |
| 32 } | |
| 33 | |
| 34 optional int64 cancel_time = 2; | |
|
David Trainor- moved to gerrit
2017/05/18 19:41:00
Give this a unit? utc?
shaktisahu
2017/05/19 04:54:57
Done.
| |
| 35 optional Priority priority = 3; | |
| 36 optional NetworkRequirements network_requirements = 4; | |
| 37 optional BatteryRequirements battery_requirements = 5; | |
| 38 } | |
| OLD | NEW |