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 // Creates a WebAPK on the server and returns URL to download WebAPK from Google | 11 // Creates a WebAPK on the server and returns URL to download WebAPK from Google |
12 // Play. | 12 // Play. |
13 message CreateWebApkRequest { | 13 message CreateWebApkRequest { |
14 optional WebApk webapk = 1; | 14 optional WebApk webapk = 1; |
15 } | 15 } |
16 | 16 |
17 // Response to CreateWebApkRequest. | 17 // Creates a updated WebAPK on the server and returns URL to download WebAPK |
18 message CreateWebApkResponse { | 18 // from Google Play. |
| 19 message UpdateWebApkRequest { |
| 20 optional WebApk webapk = 1; |
| 21 } |
| 22 |
| 23 // Response after creating or updating a WebAPK. |
| 24 message WebApkResponse { |
19 // Package name to install WebAPK at. | 25 // Package name to install WebAPK at. |
20 optional string webapk_package_name = 1; | 26 optional string webapk_package_name = 1; |
21 | 27 |
22 // URL to download WebAPK. | 28 // Version code of the WebAPK. |
23 optional string signed_download_url = 2; | 29 optional string version = 2; |
| 30 |
| 31 // URL to download WebAPK from Google Play. |
| 32 optional string signed_download_url = 3; |
| 33 |
| 34 reserved 4; |
24 } | 35 } |
25 | 36 |
26 message WebApk { | 37 message WebApk { |
| 38 // Package name of the WebAPK. |
| 39 optional string package_name = 1; |
| 40 |
| 41 // Version code of the WebAPK. |
| 42 optional string version = 2; |
| 43 |
27 // The URL of the Web App Manifest. | 44 // The URL of the Web App Manifest. |
28 optional string manifest_url = 2; | 45 optional string manifest_url = 3; |
29 | 46 |
30 // Chrome's package name. | 47 // Chrome's package name. |
31 optional string requester_application_package = 4; | 48 optional string requester_application_package = 5; |
32 | 49 |
33 // Chrome's version. | 50 // Chrome's version. |
34 optional string requester_application_version = 5; | 51 optional string requester_application_version = 6; |
35 | 52 |
36 // The Web App Manifest. | 53 // The Web App Manifest. |
37 optional WebAppManifest manifest = 6; | 54 optional WebAppManifest manifest = 7; |
38 | 55 |
39 reserved 1, 3, 7; | 56 reserved 4; |
40 } | 57 } |
41 | 58 |
42 // Contains data from the Web App Manifest. | 59 // Contains data from the Web App Manifest. |
43 message WebAppManifest { | 60 message WebAppManifest { |
44 optional string name = 1; | 61 optional string name = 1; |
45 optional string short_name = 2; | 62 optional string short_name = 2; |
46 optional string start_url = 4; | 63 optional string start_url = 4; |
47 repeated string scopes = 5; | 64 repeated string scopes = 5; |
48 repeated Image icons = 6; | 65 repeated Image icons = 6; |
49 optional string orientation = 9; | 66 optional string orientation = 9; |
(...skipping 11 matching lines...) Expand all Loading... |
61 // MD5 hash of the icon's bytes. There should not be any transformations | 78 // MD5 hash of the icon's bytes. There should not be any transformations |
62 // applied to the icon's bytes prior to taking the MD5 hash. | 79 // applied to the icon's bytes prior to taking the MD5 hash. |
63 optional string hash = 5; | 80 optional string hash = 5; |
64 | 81 |
65 // Actual bytes of the image. This image may be re-encoded from the original | 82 // Actual bytes of the image. This image may be re-encoded from the original |
66 // image and may not match the MD5 hash field above. | 83 // image and may not match the MD5 hash field above. |
67 optional bytes image_data = 6; | 84 optional bytes image_data = 6; |
68 | 85 |
69 reserved 2 to 4; | 86 reserved 2 to 4; |
70 } | 87 } |
OLD | NEW |