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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/download/internal/proto/entry.proto
diff --git a/components/download/internal/proto/entry.proto b/components/download/internal/proto/entry.proto
new file mode 100644
index 0000000000000000000000000000000000000000..29da23367e1d828ed4c46f87c17ade2c2a805fbd
--- /dev/null
+++ b/components/download/internal/proto/entry.proto
@@ -0,0 +1,53 @@
+// 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;
+
+import "scheduling.proto";
+
+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.
+ INVALID = 0;
+ TEST = 1;
+ OFFLINE_PAGE_PREFETCH = 2;
+ BOUNDARY = 3;
+}
+
+message RequestHeader {
+ optional string key = 1;
+ optional string value = 2;
+}
+
+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.
+ optional string url = 1;
+ optional string method = 2;
+ repeated RequestHeader headers = 3;
+}
+
+// Stores the request params, internal state, metrics and metadata associated
+// with a download request.
+message Entry {
+ 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.
+ NEW = 0;
+ AVAILABLE = 1;
+ ACTIVE = 2;
+ PAUSED = 3;
+ COMPLETE = 4;
+ WATCHDOG = 5;
+ }
+
+ // Identification Parameters.
+ optional DownloadClient name_space = 1;
+ optional string guid = 2;
+
+ // Requested Parameters.
+ optional SchedulingParams scheduling_params = 3;
+ optional RequestParams request_params = 4;
+
+ // Internal Tracking State.
+ optional State state = 5;
+}

Powered by Google App Engine
This is Rietveld 408576698