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..d794f825a8c85c88d12f4cdcded9cca3715822e5 |
--- /dev/null |
+++ b/chrome/browser/android/webapk/webapk.proto |
@@ -0,0 +1,61 @@ |
+// 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 { |
pkotwicz
2016/07/11 20:43:52
This differs from the previously agreed version of
scottkirkwood
2016/07/13 14:41:45
You need to follow the proto at http://cs/piper///
pkotwicz
2016/07/13 19:49:35
Based on offline discussion, scottkirkwood@ will s
ScottK
2016/07/21 19:46:20
Also there are only 3 chrome APIs that I could fin
|
+ // URL to download WebAPK from Google Play. |
+ optional string signed_market_url = 5; |
+} |
+ |
+message WebApk { |
+ // The URL of the Web App Manifest. |
+ optional string manifest_url = 2; |
+ |
+ // Chrome's package name. |
+ optional string requester_application_package = 4; |
pkotwicz
2016/07/11 20:43:52
The server proto says that "requester_application_
Yaron
2016/07/13 00:24:01
It should be required though. Isn't the host appli
pkotwicz
2016/07/13 02:15:30
Sorry for the confusion. I am purposefully excludi
scottkirkwood
2016/07/13 14:41:45
You really should send it as we use this as part o
pkotwicz
2016/07/13 19:49:35
Based on offline discussion we do not use "request
Yaron
2016/07/19 17:31:13
Actually, please add the version number now. The n
pkotwicz
2016/07/20 05:13:41
Done.
|
+ |
+ // The Web App Manifest. |
+ optional WebAppManifest manifest = 6; |
+} |
+ |
+// Contains data from the Web App Manifest. |
+message WebAppManifest { |
+ optional string name = 1; |
+ optional string short_name = 2; |
+ optional string start_url = 4; |
+ repeated string scope = 5; |
+ repeated Image icon = 6; |
pkotwicz
2016/07/11 20:43:52
The names of the repeated fields are "scope" inste
scottkirkwood
2016/07/13 14:41:45
That was the old recommendation, now the new recom
pkotwicz
2016/07/13 19:49:35
Done.
|
+ optional string orientation = 9; |
+ optional string display_mode = 10; |
+ |
+ // Colors are in ARGB format. 0x80000000 if the color was not specified in |
+ // the manifest. |
pkotwicz
2016/07/11 20:43:52
The colors are ints instead of CSS strings as prev
pkotwicz
2016/07/11 20:47:33
The default looks wrong but that's what content::M
scottkirkwood
2016/07/13 14:41:45
Right, and we agreed you should pass strings in th
pkotwicz
2016/07/13 19:49:35
Done.
|
+ optional uint64 theme_color = 11; |
+ optional uint64 background_color = 12; |
+} |
+ |
+message Image { |
+ // 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. |
pkotwicz
2016/07/11 20:43:52
I excluded the "hash_method" field in the server p
scottkirkwood
2016/07/13 14:41:45
fine, please just "reserve" all fields you are not
pkotwicz
2016/07/13 19:49:35
Done.
|
+ 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; |
+} |