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; |
18 | 18 |
19 // URL to download WebAPK. | 19 // URL to download WebAPK. Note that this can be empty, and if it is, the |
20 // client should not attempt to download or install anything. For example, | |
21 // this may be empty when the client requests an update even though no content | |
22 // has changed. The WAM server can then let the client know that it is | |
23 // up-to-date already and does not need to spend bandwidth re-downloading a | |
24 // WebAPK it already has. | |
pkotwicz
2017/02/10 02:50:31
How about: "If the URL is empty, the client should
Xi Han
2017/02/10 18:21:09
Done.
| |
20 optional string signed_download_url = 3; | 25 optional string signed_download_url = 3; |
21 | 26 |
22 // Unique id identifying session with WebAPK server. | 27 // Unique id identifying session with WebAPK server. |
23 optional string token = 6; | 28 optional string token = 6; |
24 | 29 |
25 reserved 4, 5; | 30 reserved 4, 5; |
26 } | 31 } |
27 | 32 |
28 // Sent as part of request to create or update a WebAPK. | 33 // Sent as part of request to create or update a WebAPK. |
29 message WebApk { | 34 message WebApk { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 // Murmur2 hash of the icon's bytes. There should not be any transformations | 82 // Murmur2 hash of the icon's bytes. There should not be any transformations |
78 // applied to the icon's bytes prior to taking the Murmur2 hash. | 83 // applied to the icon's bytes prior to taking the Murmur2 hash. |
79 optional string hash = 5; | 84 optional string hash = 5; |
80 | 85 |
81 // Actual bytes of the image. This image may be re-encoded from the original | 86 // Actual bytes of the image. This image may be re-encoded from the original |
82 // image and may not match the murmur2 hash field above. | 87 // image and may not match the murmur2 hash field above. |
83 optional bytes image_data = 6; | 88 optional bytes image_data = 6; |
84 | 89 |
85 reserved 2 to 4; | 90 reserved 2 to 4; |
86 } | 91 } |
OLD | NEW |