Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1798)

Side by Side Diff: chrome/browser/android/webapk/webapk.proto

Issue 2184913005: Add calls to the server to request WebAPK updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and nits. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 to "create" request. 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.
17 optional string version = 2;
18
16 // URL to download WebAPK. 19 // URL to download WebAPK.
17 optional string signed_download_url = 3; 20 optional string signed_download_url = 3;
18 21
19 reserved 2, 4; 22 reserved 4;
20 } 23 }
21 24
22 // Sent as part of request to create a WebAPK. 25 // Sent as part of request to create or update a WebAPK.
23 message WebApk { 26 message WebApk {
27 // Package name of the WebAPK.
28 optional string package_name = 1;
29
30 // Version code of the WebAPK.
31 optional string version = 2;
32
24 // The URL of the Web App Manifest. 33 // The URL of the Web App Manifest.
25 optional string manifest_url = 3; 34 optional string manifest_url = 3;
26 35
27 // Chrome's package name. 36 // Chrome's package name.
28 optional string requester_application_package = 5; 37 optional string requester_application_package = 5;
29 38
30 // Chrome's version. 39 // Chrome's version.
31 optional string requester_application_version = 6; 40 optional string requester_application_version = 6;
32 41
33 // The Web App Manifest. 42 // The Web App Manifest.
34 optional WebAppManifest manifest = 7; 43 optional WebAppManifest manifest = 7;
35 44
36 reserved 1, 2, 4; 45 reserved 4;
37 } 46 }
38 47
39 // Contains data from the Web App Manifest. 48 // Contains data from the Web App Manifest.
40 message WebAppManifest { 49 message WebAppManifest {
41 optional string name = 1; 50 optional string name = 1;
42 optional string short_name = 2; 51 optional string short_name = 2;
43 optional string start_url = 4; 52 optional string start_url = 4;
44 repeated string scopes = 5; 53 repeated string scopes = 5;
45 repeated Image icons = 6; 54 repeated Image icons = 6;
46 optional string orientation = 9; 55 optional string orientation = 9;
(...skipping 11 matching lines...) Expand all
58 // Murmur2 hash of the icon's bytes. There should not be any transformations 67 // Murmur2 hash of the icon's bytes. There should not be any transformations
59 // applied to the icon's bytes prior to taking the Murmur2 hash. 68 // applied to the icon's bytes prior to taking the Murmur2 hash.
60 optional string hash = 5; 69 optional string hash = 5;
61 70
62 // Actual bytes of the image. This image may be re-encoded from the original 71 // Actual bytes of the image. This image may be re-encoded from the original
63 // image and may not match the murmur2 hash field above. 72 // image and may not match the murmur2 hash field above.
64 optional bytes image_data = 6; 73 optional bytes image_data = 6;
65 74
66 reserved 2 to 4; 75 reserved 2 to 4;
67 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698