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. If the URL is empty, the client should not attempt |
| 20 // to download or install anything. For example, this may be empty when the |
| 21 // client requests an update even though no content has changed. The WebAPK |
| 22 // server can then let the client know that it is up-to-date already and does |
| 23 // not need to spend bandwidth re-downloading a WebAPK it has. |
20 optional string signed_download_url = 3; | 24 optional string signed_download_url = 3; |
21 | 25 |
22 // Unique id identifying session with WebAPK server. | 26 // Unique id identifying session with WebAPK server. |
23 optional string token = 6; | 27 optional string token = 6; |
24 | 28 |
25 reserved 4, 5; | 29 reserved 4, 5; |
26 } | 30 } |
27 | 31 |
28 // Sent as part of request to create or update a WebAPK. | 32 // Sent as part of request to create or update a WebAPK. |
29 message WebApk { | 33 message WebApk { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 90 |
87 // Actual bytes of the image. This image may be re-encoded from the original | 91 // Actual bytes of the image. This image may be re-encoded from the original |
88 // image and may not match the murmur2 hash field above. | 92 // image and may not match the murmur2 hash field above. |
89 optional bytes image_data = 6; | 93 optional bytes image_data = 6; |
90 | 94 |
91 // Specifies Chrome's intended usages for the image. | 95 // Specifies Chrome's intended usages for the image. |
92 repeated Usage usages = 8; | 96 repeated Usage usages = 8; |
93 | 97 |
94 reserved 2, 3, 4, 7; | 98 reserved 2, 3, 4, 7; |
95 } | 99 } |
OLD | NEW |