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 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Chrome's version. | 39 // Chrome's version. |
40 optional string requester_application_version = 6; | 40 optional string requester_application_version = 6; |
41 | 41 |
42 // The Web App Manifest. | 42 // The Web App Manifest. |
43 optional WebAppManifest manifest = 7; | 43 optional WebAppManifest manifest = 7; |
44 | 44 |
45 // The cpu abi of the browser making the request. | 45 // The cpu abi of the browser making the request. |
46 optional string android_abi = 8; | 46 optional string android_abi = 8; |
47 | 47 |
| 48 // If set true, this flag indicates that the Web App Manifest of the site is |
| 49 // no longer avaialbe. Therefore, an empty WebApkManifest is sent to the |
| 50 // server. |
| 51 optional bool stale_manifest = 9; |
| 52 |
48 reserved 4; | 53 reserved 4; |
49 } | 54 } |
50 | 55 |
51 // Contains data from the Web App Manifest. | 56 // Contains data from the Web App Manifest. |
52 message WebAppManifest { | 57 message WebAppManifest { |
53 optional string name = 1; | 58 optional string name = 1; |
54 optional string short_name = 2; | 59 optional string short_name = 2; |
55 optional string start_url = 4; | 60 optional string start_url = 4; |
56 repeated string scopes = 5; | 61 repeated string scopes = 5; |
57 repeated Image icons = 6; | 62 repeated Image icons = 6; |
(...skipping 12 matching lines...) Expand all Loading... |
70 // Murmur2 hash of the icon's bytes. There should not be any transformations | 75 // 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. | 76 // applied to the icon's bytes prior to taking the Murmur2 hash. |
72 optional string hash = 5; | 77 optional string hash = 5; |
73 | 78 |
74 // Actual bytes of the image. This image may be re-encoded from the original | 79 // 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. | 80 // image and may not match the murmur2 hash field above. |
76 optional bytes image_data = 6; | 81 optional bytes image_data = 6; |
77 | 82 |
78 reserved 2 to 4; | 83 reserved 2 to 4; |
79 } | 84 } |
OLD | NEW |