OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 syntax = "proto2"; | |
6 | |
7 option optimize_for = LITE_RUNTIME; | |
8 | |
9 package webapk; | |
10 | |
11 // Creates a WebAPK on the server and returns URL to download WebAPK from Google | |
12 // Play. | |
13 message CreateWebApkRequest { | |
14 optional WebApk webapk = 1; | |
15 } | |
16 | |
17 // Response to CreateWebApkRequest. | |
18 message CreateWebApkResponse { | |
19 // URL to download WebAPK. | |
20 optional string signed_download_url = 1; | |
21 | |
22 // Package name to install WebAPK at. | |
23 optional string webapk_package_name = 2; | |
ScottK
2016/07/26 21:11:11
I think you mentioned previously that you needed t
pkotwicz
2016/07/27 02:50:23
We know which request we are getting the response
| |
24 } | |
25 | |
26 message WebApk { | |
27 // The URL of the Web App Manifest. | |
28 optional string manifest_url = 2; | |
29 | |
30 // Chrome's package name. | |
31 optional string requester_application_package = 4; | |
32 | |
33 // Chrome's version. | |
34 optional string requester_application_version = 5; | |
35 | |
36 // The Web App Manifest. | |
37 optional WebAppManifest manifest = 6; | |
38 | |
39 reserved 1, 3, 7; | |
40 } | |
41 | |
42 // Contains data from the Web App Manifest. | |
43 message WebAppManifest { | |
44 optional string name = 1; | |
45 optional string short_name = 2; | |
46 optional string start_url = 4; | |
47 repeated string scopes = 5; | |
48 repeated Image icons = 6; | |
49 optional string orientation = 9; | |
50 optional string display_mode = 10; | |
51 optional string theme_color = 11; | |
52 optional string background_color = 12; | |
53 | |
54 reserved 3, 7, 8, 13, 14; | |
55 } | |
56 | |
57 message Image { | |
58 // Image's URL. | |
59 optional string src = 1; | |
60 | |
61 // 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. | |
63 optional string hash = 5; | |
64 | |
65 // 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. | |
67 optional bytes image_data = 6; | |
68 | |
69 reserved 2 to 4; | |
70 } | |
OLD | NEW |