OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package webapk; | 9 package webapk; |
10 | 10 |
11 // Response after creating or updating a WebAPK. | 11 // Response after creating or updating a WebAPK. |
12 message WebApkResponse { | 12 message WebApkResponse { |
13 // Package name to install WebAPK at. | 13 // Package name to install WebAPK at. |
14 optional string package_name = 1; | 14 optional string package_name = 1; |
15 | 15 |
16 // Version code of the WebAPK. | 16 // Version code of the WebAPK. |
17 optional string version = 2; | 17 optional string version = 2; |
pkotwicz
2016/11/23 03:11:28
If Chrome wants this to be an int, can we change t
Xi Han
2016/11/23 15:43:46
Talked to Glenn offline, the change would break al
pkotwicz
2016/11/23 15:56:38
Fair enough
| |
18 | 18 |
19 // URL to download WebAPK. | 19 // URL to download WebAPK. |
20 optional string signed_download_url = 3; | 20 optional string signed_download_url = 3; |
21 | 21 |
22 reserved 4; | 22 // The token to give the Phonesky backend for the rest of the information. |
pkotwicz
2016/11/23 03:11:28
How about: "Unique id identifying session with Web
Xi Han
2016/11/23 15:43:45
Updated.
pkotwicz
2016/11/23 15:56:38
Let's rename it in Chrome so that at least Chrome
Xi Han
2016/11/23 16:44:42
How about "wam_token" as the one sent to Play?
| |
23 optional string token = 6; | |
24 | |
25 reserved 4, 5; | |
23 } | 26 } |
24 | 27 |
25 // Sent as part of request to create or update a WebAPK. | 28 // Sent as part of request to create or update a WebAPK. |
26 message WebApk { | 29 message WebApk { |
27 // Package name of the WebAPK. | 30 // Package name of the WebAPK. |
28 optional string package_name = 1; | 31 optional string package_name = 1; |
29 | 32 |
30 // Version code of the WebAPK. | 33 // Version code of the WebAPK. |
31 optional string version = 2; | 34 optional string version = 2; |
32 | 35 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 // Murmur2 hash of the icon's bytes. There should not be any transformations | 73 // Murmur2 hash of the icon's bytes. There should not be any transformations |
71 // applied to the icon's bytes prior to taking the Murmur2 hash. | 74 // applied to the icon's bytes prior to taking the Murmur2 hash. |
72 optional string hash = 5; | 75 optional string hash = 5; |
73 | 76 |
74 // Actual bytes of the image. This image may be re-encoded from the original | 77 // Actual bytes of the image. This image may be re-encoded from the original |
75 // image and may not match the murmur2 hash field above. | 78 // image and may not match the murmur2 hash field above. |
76 optional bytes image_data = 6; | 79 optional bytes image_data = 6; |
77 | 80 |
78 reserved 2 to 4; | 81 reserved 2 to 4; |
79 } | 82 } |
OLD | NEW |