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 // This should stay in sync with the NetworkRequirements enum |
| 14 // (components/download/public/download_params.h). |
| 15 enum NetworkRequirements { |
| 16 NONE = 0; |
| 17 OPTIMISTIC = 1; |
| 18 UNMETERED = 2; |
| 19 } |
| 20 |
| 21 // This should stay in sync with the BatteryRequirements enum |
| 22 // (components/download/public/download_params.h). |
| 23 enum BatteryRequirements { |
| 24 BATTERY_INSENSITIVE = 0; |
| 25 BATTERY_SENSITIVE = 1; |
| 26 } |
| 27 |
| 28 // This should stay in sync with the Priority enum |
| 29 // (components/download/public/download_params.h). |
| 30 enum Priority { |
| 31 LOW = 0; |
| 32 NORMAL = 1; |
| 33 HIGH = 2; |
| 34 UI = 3; |
| 35 } |
| 36 |
| 37 // Uses internal time representation. |
| 38 optional int64 cancel_time = 2; |
| 39 |
| 40 optional Priority priority = 3; |
| 41 optional NetworkRequirements network_requirements = 4; |
| 42 optional BatteryRequirements battery_requirements = 5; |
| 43 } |
OLD | NEW |