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

Unified Diff: components/offline_pages/core/prefetch/proto/status.proto

Issue 2873383004: [Offline Prefetch] Send GeneratePageBundleRequest to the server (Closed)
Patch Set: Address more feedback 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/offline_pages/core/prefetch/proto/status.proto
diff --git a/components/offline_pages/core/prefetch/proto/status.proto b/components/offline_pages/core/prefetch/proto/status.proto
new file mode 100644
index 0000000000000000000000000000000000000000..f7187993d2318c871fec8a63a766ee6af861d6d8
--- /dev/null
+++ b/components/offline_pages/core/prefetch/proto/status.proto
@@ -0,0 +1,29 @@
+// 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 = "proto3";
+option optimize_for = LITE_RUNTIME;
+
+package offline_pages.proto;
+
+import "any.proto";
+
+enum Code {
+ OK = 0;
+ UNKNOWN = 2;
+ NOT_FOUND = 5;
+ FAILED_PRECONDITION = 9;
+}
+
+message Status {
+ // The status code.
+ int32 code = 1;
+
+ // A developer-facing error message, which should be in English.
+ string message = 2;
+
+ // A list of messages that carry the error details. There will be a
+ // common set of message types for APIs to use.
+ repeated Any details = 3;
+}

Powered by Google App Engine
This is Rietveld 408576698