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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/download/internal/proto/BUILD.gn ('k') | components/download/internal/proto/request.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d5f9dfed3d8749ba87b6d9d109e940d3da68dd93
--- /dev/null
+++ b/components/download/internal/proto/entry.proto
@@ -0,0 +1,47 @@
+// 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 "request.proto";
+import "scheduling.proto";
+
+// This should stay in sync with the DownloadClient enum
+// (components/download/public/clients.h).
+enum DownloadClient {
+ INVALID = 0;
+ TEST = 1;
+ OFFLINE_PAGE_PREFETCH = 2;
+ BOUNDARY = 3;
+}
+
+// Stores the request params, internal state, metrics and metadata associated
+// with a download request.
+message Entry {
+ // This should stay in sync with the State enum
+ // (components/download/internal/entry.h).
+ enum State {
+ 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;
+}
« 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