Chromium Code Reviews| Index: chrome/browser/android/webapk/webapk.proto |
| diff --git a/chrome/browser/android/webapk/webapk.proto b/chrome/browser/android/webapk/webapk.proto |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6d1f8bbf332eb812f43ac1b2744663dc31136184 |
| --- /dev/null |
| +++ b/chrome/browser/android/webapk/webapk.proto |
| @@ -0,0 +1,64 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +syntax = "proto2"; |
| + |
| +option optimize_for = LITE_RUNTIME; |
| + |
| +package webapk; |
| + |
| +// Creates a WebAPK on the server and returns URL to download WebAPK from Google |
| +// Play. |
| +message CreateWebApkRequest { |
| + optional WebApk webapk = 1; |
| +} |
| + |
| +// Response to CreateWebApkRequest. |
| +message CreateWebApkResponse { |
| + // URL to download WebAPK from Google Play. |
| + optional string signed_market_url = 5; |
| +} |
| + |
| +message WebApk { |
| + reserved 1, 3, 5, 7; |
|
scottkirkwood
2016/07/19 17:59:14
I usually put the 'reserved' line at the end of th
|
| + |
| + // The URL of the Web App Manifest. |
| + optional string manifest_url = 2; |
| + |
| + // Chrome's package name. |
| + optional string requester_application_package = 4; |
| + |
| + // The Web App Manifest. |
| + optional WebAppManifest manifest = 6; |
| +} |
| + |
| +// Contains data from the Web App Manifest. |
| +message WebAppManifest { |
| + reserved 3, 7, 8, 13, 14; |
| + |
| + optional string name = 1; |
| + optional string short_name = 2; |
| + optional string start_url = 4; |
| + repeated string scopes = 5; |
| + repeated Image icons = 6; |
| + optional string orientation = 9; |
| + optional string display_mode = 10; |
| + optional string theme_color = 11; |
| + optional string background_color = 12; |
| +} |
| + |
| +message Image { |
| + reserved 2 to 4; |
| + |
| + // Image's URL. |
| + optional string src = 1; |
| + |
| + // MD5 hash of the icon's bytes. There should not be any transformations |
| + // applied to the icon's bytes prior to taking the MD5 hash. |
| + optional string hash = 5; |
| + |
| + // Actual bytes of the image. This image may be re-encoded from the original |
| + // image and may not match the MD5 hash field above. |
| + optional bytes image_data = 6; |
| +} |