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

Unified Diff: chrome/browser/android/webapk/webapk.proto

Issue 2138973002: Initial CL for talking to the WebAPK server to generate WebAPK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'webapk_builder_impl0' into webapk_builder_impl2 Created 4 years, 5 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: chrome/browser/android/webapk/webapk.proto
diff --git a/chrome/browser/android/webapk/webapk.proto b/chrome/browser/android/webapk/webapk.proto
new file mode 100644
index 0000000000000000000000000000000000000000..6d1f8bbf332eb812f43ac1b2744663dc31136184
--- /dev/null
+++ b/chrome/browser/android/webapk/webapk.proto
@@ -0,0 +1,64 @@
+// Copyright 2016 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 webapk;
+
+// Creates a WebAPK on the server and returns URL to download WebAPK from Google
+// Play.
+message CreateWebApkRequest {
+ optional WebApk webapk = 1;
+}
+
+// Response to CreateWebApkRequest.
+message CreateWebApkResponse {
+ // URL to download WebAPK from Google Play.
+ optional string signed_market_url = 5;
+}
+
+message WebApk {
+ reserved 1, 3, 5, 7;
scottkirkwood 2016/07/19 17:59:14 I usually put the 'reserved' line at the end of th
+
+ // The URL of the Web App Manifest.
+ optional string manifest_url = 2;
+
+ // Chrome's package name.
+ optional string requester_application_package = 4;
+
+ // The Web App Manifest.
+ optional WebAppManifest manifest = 6;
+}
+
+// Contains data from the Web App Manifest.
+message WebAppManifest {
+ reserved 3, 7, 8, 13, 14;
+
+ optional string name = 1;
+ optional string short_name = 2;
+ optional string start_url = 4;
+ repeated string scopes = 5;
+ repeated Image icons = 6;
+ optional string orientation = 9;
+ optional string display_mode = 10;
+ optional string theme_color = 11;
+ optional string background_color = 12;
+}
+
+message Image {
+ reserved 2 to 4;
+
+ // Image's URL.
+ optional string src = 1;
+
+ // MD5 hash of the icon's bytes. There should not be any transformations
+ // applied to the icon's bytes prior to taking the MD5 hash.
+ optional string hash = 5;
+
+ // Actual bytes of the image. This image may be re-encoded from the original
+ // image and may not match the MD5 hash field above.
+ optional bytes image_data = 6;
+}

Powered by Google App Engine
This is Rietveld 408576698