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

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 // 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;
29
30 // Chrome's version.
31 optional string requester_application_version = 5;
32
33 // The Web App Manifest.
34 optional WebAppManifest manifest = 6;
35
36 reserved 1, 3, 7;
37 }
38
39 // Contains data from the Web App Manifest.
40 message WebAppManifest {
41 optional string name = 1;
42 optional string short_name = 2;
43 optional string start_url = 4;
44 repeated string scopes = 5;
45 repeated Image icons = 6;
46 optional string orientation = 9;
47 optional string display_mode = 10;
48 optional string theme_color = 11;
49 optional string background_color = 12;
50
51 reserved 3, 7, 8, 13, 14;
52 }
53
54 message Image {
55 // Image's URL.
56 optional string src = 1;
57
58 // MD5 hash of the icon's bytes. There should not be any transformations
59 // applied to the icon's bytes prior to taking the MD5 hash.
60 optional string hash = 5;
61
62 // Actual bytes of the image. This image may be re-encoded from the original
63 // image and may not match the MD5 hash field above.
64 optional bytes image_data = 6;
65
66 reserved 2 to 4;
67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698