Index: components/download/internal/proto/scheduling.proto |
diff --git a/components/download/internal/proto/scheduling.proto b/components/download/internal/proto/scheduling.proto |
new file mode 100644 |
index 0000000000000000000000000000000000000000..db124356c6e3d532979ea91cd4564a2744ec4e9a |
--- /dev/null |
+++ b/components/download/internal/proto/scheduling.proto |
@@ -0,0 +1,38 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+syntax = "proto2"; |
+ |
+option optimize_for = LITE_RUNTIME; |
+ |
+package protodb; |
+ |
+// Stores the scheduling params associated with a download request. |
+message SchedulingParams { |
+ // Network criteria. |
+ 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.
|
+ NONE = 0; |
+ OPTIMISTIC = 1; |
+ UNMETERED = 2; |
+ } |
+ |
+ // Battery criteria. |
+ enum BatteryRequirements { |
+ BATTERY_INSENSITIVE = 0; |
+ BATTERY_SENSITIVE = 1; |
+ } |
+ |
+ // Download priority. |
+ enum Priority { |
+ LOW = 0; |
+ NORMAL = 1; |
+ HIGH = 2; |
+ UI = 3; |
+ } |
+ |
+ 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.
|
+ optional Priority priority = 3; |
+ optional NetworkRequirements network_requirements = 4; |
+ optional BatteryRequirements battery_requirements = 5; |
+} |