Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: components/download/internal/proto/entry.proto

Issue 2881173003: Download Service : Added leveldb proto layer (Closed)
Patch Set: More unittests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 "scheduling.proto";
12
13 enum DownloadClient {
David Trainor- moved to gerrit 2017/05/18 19:41:00 Comment about keeping this in sync with the list i
shaktisahu 2017/05/19 04:54:57 Done.
14 INVALID = 0;
15 TEST = 1;
16 OFFLINE_PAGE_PREFETCH = 2;
17 BOUNDARY = 3;
18 }
19
20 message RequestHeader {
21 optional string key = 1;
22 optional string value = 2;
23 }
24
25 message RequestParams {
David Trainor- moved to gerrit 2017/05/18 19:41:00 If we pulled out scheduling we should pull this ou
shaktisahu 2017/05/19 04:54:57 Done.
26 optional string url = 1;
27 optional string method = 2;
28 repeated RequestHeader headers = 3;
29 }
30
31 // Stores the request params, internal state, metrics and metadata associated
32 // with a download request.
33 message Entry {
34 enum State {
David Trainor- moved to gerrit 2017/05/18 19:41:00 Comment about keeping this in sync with the state
shaktisahu 2017/05/19 04:54:57 Done.
35 NEW = 0;
36 AVAILABLE = 1;
37 ACTIVE = 2;
38 PAUSED = 3;
39 COMPLETE = 4;
40 WATCHDOG = 5;
41 }
42
43 // Identification Parameters.
44 optional DownloadClient name_space = 1;
45 optional string guid = 2;
46
47 // Requested Parameters.
48 optional SchedulingParams scheduling_params = 3;
49 optional RequestParams request_params = 4;
50
51 // Internal Tracking State.
52 optional State state = 5;
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698