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

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

Issue 2641973003: Implement server-suggested update check backoff (Closed)
Patch Set: Rebase. Created 3 years, 9 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
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. If the URL is empty, the client should not attempt 19 // URL to download WebAPK. If the URL is empty, the client should not attempt
20 // to download or install anything. For example, this may be empty when the 20 // to download or install anything. For example, this may be empty when the
21 // client requests an update even though no content has changed. The WebAPK 21 // client requests an update even though no content has changed. The WebAPK
22 // server can then let the client know that it is up-to-date already and does 22 // server can then let the client know that it is up-to-date already and does
23 // not need to spend bandwidth re-downloading a WebAPK it has. 23 // not need to spend bandwidth re-downloading a WebAPK it has.
24 optional string signed_download_url = 3; 24 optional string signed_download_url = 3;
25 25
26 // Unique id identifying session with WebAPK server. 26 // Unique id identifying session with WebAPK server.
27 optional string token = 6; 27 optional string token = 6;
28 28
29 reserved 4, 5; 29 // If true, this directs the client to check for updates less frequently than
30 // normal. This flag may be used, for example, if the WAM server knows that
31 // the client has an up-to-date WebAPK, but the client is unable to determine
32 // that for itself. Therefore, we want the client to back off from spamming
33 // update requests too often.
pkotwicz 2017/03/04 00:20:47 This is not really correct. The client can determi
Xi Han 2017/03/06 22:14:21 Makes sense, thanks for the better description.
34 optional bool relax_updates = 8;
35
36 reserved 4, 5, 7;
30 } 37 }
31 38
32 // Sent as part of request to create or update a WebAPK. 39 // Sent as part of request to create or update a WebAPK.
33 message WebApk { 40 message WebApk {
34 // Package name of the WebAPK. 41 // Package name of the WebAPK.
35 optional string package_name = 1; 42 optional string package_name = 1;
36 43
37 // Version code of the WebAPK. 44 // Version code of the WebAPK.
38 optional string version = 2; 45 optional string version = 2;
39 46
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 97
91 // Actual bytes of the image. This image may be re-encoded from the original 98 // Actual bytes of the image. This image may be re-encoded from the original
92 // image and may not match the murmur2 hash field above. 99 // image and may not match the murmur2 hash field above.
93 optional bytes image_data = 6; 100 optional bytes image_data = 6;
94 101
95 // Specifies Chrome's intended usages for the image. 102 // Specifies Chrome's intended usages for the image.
96 repeated Usage usages = 8; 103 repeated Usage usages = 8;
97 104
98 reserved 2, 3, 4, 7; 105 reserved 2, 3, 4, 7;
99 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698