Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 import "precache.proto"; | |
| 8 | |
| 9 package precache; | |
| 10 | |
| 11 // Chrome requires this. | |
| 12 option optimize_for = LITE_RUNTIME; | |
| 13 | |
| 14 message TopHost { | |
| 15 // The host name of a top host. | |
| 16 optional string hostname = 1; | |
| 17 | |
| 18 // The rank of the top host. | |
| 19 optional int32 rank = 2; | |
|
sclittle
2016/05/19 01:59:46
Could you just store these in rank order instead o
bengr
2016/05/19 23:19:32
Done.
| |
| 20 }; | |
| 21 | |
| 22 message PrecacheManifestURL { | |
| 23 // The URL that provides a manifest. | |
| 24 optional string url = 1; | |
| 25 }; | |
| 26 | |
| 27 // Information about the precache work that needs to be completed. | |
| 28 message PrecacheUnfinishedWork { | |
| 29 // Top hosts for which to fetch manifests. | |
| 30 repeated TopHost top_host = 1; | |
| 31 | |
| 32 optional PrecacheConfigurationSettings config_settings = 2; | |
| 33 | |
| 34 // Manifest URLs remaining to be fetched. | |
| 35 repeated PrecacheManifestURL manifest = 3; | |
| 36 | |
| 37 // Resource URLs remaining to be fetched. | |
| 38 repeated PrecacheResource resource = 4; | |
| 39 | |
| 40 // Count of the total received bytes so far during this precache session. | |
| 41 optional uint64 total_bytes = 5; | |
| 42 | |
| 43 // Count of the total received bytes over the network during this precache | |
| 44 // session. | |
| 45 optional uint64 network_bytes = 6; | |
| 46 | |
| 47 // The total number of manifest URLs that the precache session started with. | |
| 48 optional uint64 num_manifest_urls = 7; | |
| 49 | |
| 50 // The internal value of a base::Time object representing the precach | |
| 51 // session start time. | |
| 52 optional int64 start_time = 8; | |
| 53 }; | |
| OLD | NEW |