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

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

Issue 2515293004: Chrome talks to Play to install WebAPKs. (Closed)
Patch Set: Move play install-related code out of WebApkInstaller. Created 4 years 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 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.
20 optional string signed_download_url = 3; 20 optional string signed_download_url = 3;
21 21
22 reserved 4; 22 // Unique id identifying session with WebAPK server.
23 optional string wam_token = 6;
pkotwicz 2016/12/02 02:24:00 I like "token" better than "wam_token". People out
Xi Han 2016/12/02 20:45:37 All right, change it back.
24
25 reserved 4, 5;
23 } 26 }
24 27
25 // Sent as part of request to create or update a WebAPK. 28 // Sent as part of request to create or update a WebAPK.
26 message WebApk { 29 message WebApk {
27 // Package name of the WebAPK. 30 // Package name of the WebAPK.
28 optional string package_name = 1; 31 optional string package_name = 1;
29 32
30 // Version code of the WebAPK. 33 // Version code of the WebAPK.
31 optional string version = 2; 34 optional string version = 2;
32 35
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Murmur2 hash of the icon's bytes. There should not be any transformations 73 // 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. 74 // applied to the icon's bytes prior to taking the Murmur2 hash.
72 optional string hash = 5; 75 optional string hash = 5;
73 76
74 // Actual bytes of the image. This image may be re-encoded from the original 77 // 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. 78 // image and may not match the murmur2 hash field above.
76 optional bytes image_data = 6; 79 optional bytes image_data = 6;
77 80
78 reserved 2 to 4; 81 reserved 2 to 4;
79 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698