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 import "request.proto"; |
| 12 import "scheduling.proto"; |
| 13 |
| 14 // This should stay in sync with the DownloadClient enum |
| 15 // (components/download/public/clients.h). |
| 16 enum DownloadClient { |
| 17 INVALID = 0; |
| 18 TEST = 1; |
| 19 OFFLINE_PAGE_PREFETCH = 2; |
| 20 BOUNDARY = 3; |
| 21 } |
| 22 |
| 23 // Stores the request params, internal state, metrics and metadata associated |
| 24 // with a download request. |
| 25 message Entry { |
| 26 // This should stay in sync with the State enum |
| 27 // (components/download/internal/entry.h). |
| 28 enum State { |
| 29 NEW = 0; |
| 30 AVAILABLE = 1; |
| 31 ACTIVE = 2; |
| 32 PAUSED = 3; |
| 33 COMPLETE = 4; |
| 34 WATCHDOG = 5; |
| 35 } |
| 36 |
| 37 // Identification Parameters. |
| 38 optional DownloadClient name_space = 1; |
| 39 optional string guid = 2; |
| 40 |
| 41 // Requested Parameters. |
| 42 optional SchedulingParams scheduling_params = 3; |
| 43 optional RequestParams request_params = 4; |
| 44 |
| 45 // Internal Tracking State. |
| 46 optional State state = 5; |
| 47 } |
OLD | NEW |