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

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: Merge branch 'webapk_builder_impl0' into webapk_builder_impl2 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 {
19 // URL to download WebAPK from Google Play.
20 optional string signed_market_url = 5;
21 }
22
23 message WebApk {
24 reserved 1, 3, 5, 7;
scottkirkwood 2016/07/19 17:59:14 I usually put the 'reserved' line at the end of th
25
26 // The URL of the Web App Manifest.
27 optional string manifest_url = 2;
28
29 // Chrome's package name.
30 optional string requester_application_package = 4;
31
32 // The Web App Manifest.
33 optional WebAppManifest manifest = 6;
34 }
35
36 // Contains data from the Web App Manifest.
37 message WebAppManifest {
38 reserved 3, 7, 8, 13, 14;
39
40 optional string name = 1;
41 optional string short_name = 2;
42 optional string start_url = 4;
43 repeated string scopes = 5;
44 repeated Image icons = 6;
45 optional string orientation = 9;
46 optional string display_mode = 10;
47 optional string theme_color = 11;
48 optional string background_color = 12;
49 }
50
51 message Image {
52 reserved 2 to 4;
53
54 // Image's URL.
55 optional string src = 1;
56
57 // MD5 hash of the icon's bytes. There should not be any transformations
58 // applied to the icon's bytes prior to taking the MD5 hash.
59 optional string hash = 5;
60
61 // Actual bytes of the image. This image may be re-encoded from the original
62 // image and may not match the MD5 hash field above.
63 optional bytes image_data = 6;
64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698