Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 import "precache.proto"; | 7 import "precache.proto"; |
| 8 | 8 |
| 9 package precache; | 9 package precache; |
| 10 | 10 |
| 11 // Chrome requires this. | 11 // Chrome requires this. |
| 12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
| 13 | 13 |
| 14 message TopHost { | 14 message TopHost { |
| 15 // The host name of a top host. | 15 // The host name of a top host. |
| 16 optional string hostname = 1; | 16 optional string hostname = 1; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 message PrecacheManifestURL { | |
| 20 // The URL that provides a manifest. | |
| 21 optional string url = 1; | |
| 22 }; | |
| 23 | |
| 24 // Information about the precache work that needs to be completed. | 19 // Information about the precache work that needs to be completed. |
| 25 message PrecacheUnfinishedWork { | 20 message PrecacheUnfinishedWork { |
| 26 // Top hosts for which to fetch manifests. | 21 // Top hosts for which to fetch manifests. |
| 27 repeated TopHost top_host = 1; | 22 repeated TopHost top_host = 1; |
| 28 | 23 |
| 29 optional PrecacheConfigurationSettings config_settings = 2; | 24 optional PrecacheConfigurationSettings config_settings = 2; |
| 30 | 25 |
| 31 // Manifest URLs remaining to be fetched. | 26 // Manifest URLs remaining to be fetched - DEPRECATED. |
| 32 repeated PrecacheManifestURL manifest = 3; | 27 // repeated PrecacheManifestURL manifest = 3; |
|
Raj
2016/08/09 22:56:48
Deprecating this field. Since pending manifests ca
bengr
2016/08/11 18:49:15
Typically, deprecation looks like this:
// DEPREC
Raj
2016/08/12 19:04:22
Done.
| |
| 33 | 28 |
| 34 // Resource URLs remaining to be fetched. | 29 // Resource URLs remaining to be fetched. |
| 35 repeated PrecacheResource resource = 4; | 30 repeated PrecacheResource resource = 4; |
| 36 | 31 |
| 37 // Tally of the total number of bytes contained in URL fetches, including | 32 // Tally of the total number of bytes contained in URL fetches, including |
| 38 // config, manifests, and resources. This the number of bytes as they would be | 33 // config, manifests, and resources. This the number of bytes as they would be |
| 39 // compressed over the network. | 34 // compressed over the network. |
| 40 optional uint64 total_bytes = 5; | 35 optional uint64 total_bytes = 5; |
| 41 | 36 |
| 42 // Tally of the total number of bytes received over the network from URL | 37 // Tally of the total number of bytes received over the network from URL |
| 43 // fetches (the same ones as in total_response_bytes_). This includes response | 38 // fetches (the same ones as in total_response_bytes_). This includes response |
| 44 // headers and intermediate responses such as 30xs. | 39 // headers and intermediate responses such as 30xs. |
| 45 optional uint64 network_bytes = 6; | 40 optional uint64 network_bytes = 6; |
| 46 | 41 |
| 47 // The total number of manifest URLs that the precache session started with. | 42 // The total number of manifest URLs that the precache session started with. |
| 48 optional uint64 num_manifest_urls = 7; | 43 optional uint64 num_manifest_urls = 7; |
| 49 | 44 |
| 50 // The internal value of a base::Time object representing the precache | 45 // The internal value of a base::Time object representing the precache |
| 51 // session start time. The start time is the time just before when top hosts | 46 // session start time. The start time is the time just before when top hosts |
| 52 // are requested. | 47 // are requested. |
| 53 optional int64 start_time = 8; | 48 optional int64 start_time = 8; |
| 54 }; | 49 }; |
| OLD | NEW |