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

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

Issue 2881173003: Download Service : Added leveldb proto layer (Closed)
Patch Set: Removed Model::Destroy 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 "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 }
OLDNEW
« no previous file with comments | « components/download/internal/proto/BUILD.gn ('k') | components/download/internal/proto/request.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698