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

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

Issue 2138973002: Initial CL for talking to the WebAPK server to generate WebAPK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
(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 {
pkotwicz 2016/07/11 20:43:52 This differs from the previously agreed version of
scottkirkwood 2016/07/13 14:41:45 You need to follow the proto at http://cs/piper///
pkotwicz 2016/07/13 19:49:35 Based on offline discussion, scottkirkwood@ will s
ScottK 2016/07/21 19:46:20 Also there are only 3 chrome APIs that I could fin
19 // URL to download WebAPK from Google Play.
20 optional string signed_market_url = 5;
21 }
22
23 message WebApk {
24 // The URL of the Web App Manifest.
25 optional string manifest_url = 2;
26
27 // Chrome's package name.
28 optional string requester_application_package = 4;
pkotwicz 2016/07/11 20:43:52 The server proto says that "requester_application_
Yaron 2016/07/13 00:24:01 It should be required though. Isn't the host appli
pkotwicz 2016/07/13 02:15:30 Sorry for the confusion. I am purposefully excludi
scottkirkwood 2016/07/13 14:41:45 You really should send it as we use this as part o
pkotwicz 2016/07/13 19:49:35 Based on offline discussion we do not use "request
Yaron 2016/07/19 17:31:13 Actually, please add the version number now. The n
pkotwicz 2016/07/20 05:13:41 Done.
29
30 // The Web App Manifest.
31 optional WebAppManifest manifest = 6;
32 }
33
34 // Contains data from the Web App Manifest.
35 message WebAppManifest {
36 optional string name = 1;
37 optional string short_name = 2;
38 optional string start_url = 4;
39 repeated string scope = 5;
40 repeated Image icon = 6;
pkotwicz 2016/07/11 20:43:52 The names of the repeated fields are "scope" inste
scottkirkwood 2016/07/13 14:41:45 That was the old recommendation, now the new recom
pkotwicz 2016/07/13 19:49:35 Done.
41 optional string orientation = 9;
42 optional string display_mode = 10;
43
44 // Colors are in ARGB format. 0x80000000 if the color was not specified in
45 // the manifest.
pkotwicz 2016/07/11 20:43:52 The colors are ints instead of CSS strings as prev
pkotwicz 2016/07/11 20:47:33 The default looks wrong but that's what content::M
scottkirkwood 2016/07/13 14:41:45 Right, and we agreed you should pass strings in th
pkotwicz 2016/07/13 19:49:35 Done.
46 optional uint64 theme_color = 11;
47 optional uint64 background_color = 12;
48 }
49
50 message Image {
51 // Image's URL.
52 optional string src = 1;
53
54 // MD5 hash of the icon's bytes. There should not be any transformations
55 // applied to the icon's bytes prior to taking the MD5 hash.
pkotwicz 2016/07/11 20:43:52 I excluded the "hash_method" field in the server p
scottkirkwood 2016/07/13 14:41:45 fine, please just "reserve" all fields you are not
pkotwicz 2016/07/13 19:49:35 Done.
56 optional string hash = 5;
57
58 // Actual bytes of the image. This image may be re-encoded from the original
59 // image and may not match the MD5 hash field above.
60 optional bytes image_data = 6;
61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698