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

Side by Side Diff: components/precache/core/proto/unfinished_work.proto

Issue 2403193002: Precache: Optionally rank resources-to-precache globally. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
« no previous file with comments | « components/precache/core/proto/precache.proto ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
18 // The number of visits it had by this user.
19 optional int64 visits = 2;
17 }; 20 };
18 21
19 // Information about the precache work that needs to be completed. 22 // Information about the precache work that needs to be completed.
20 message PrecacheUnfinishedWork { 23 message PrecacheUnfinishedWork {
21 // Top hosts for which to fetch manifests. 24 // Top hosts for which to fetch manifests.
22 repeated TopHost top_host = 1; 25 repeated TopHost top_host = 1;
23 26
24 optional PrecacheConfigurationSettings config_settings = 2; 27 optional PrecacheConfigurationSettings config_settings = 2;
25 28
26 // DEPRECATED: Manifest URLs remaining to be fetched. 29 // DEPRECATED: Manifest URLs remaining to be fetched.
27 // repeated DeprecatedPrecacheManifestURL deprecated_manifest = 3 30 // repeated DeprecatedPrecacheManifestURL deprecated_manifest = 3
28 // [deprecated = true]; 31 // [deprecated = true];
29 32
30 // Resource URLs remaining to be fetched. 33 // Resource URLs remaining to be fetched.
31 repeated PrecacheResource resource = 4; 34 repeated PrecacheResource resource = 4;
32 35
33 // Tally of the total number of bytes contained in URL fetches, including 36 // Tally of the total number of bytes contained in URL fetches, including
34 // config, manifests, and resources. This the number of bytes as they would be 37 // config, manifests, and resources. This the number of bytes as they would be
35 // compressed over the network. 38 // compressed over the network.
36 optional uint64 total_bytes = 5; 39 optional uint64 total_bytes = 5;
37 40
38 // Tally of the total number of bytes received over the network from URL 41 // Tally of the total number of bytes received over the network from URL
39 // fetches (the same ones as in total_response_bytes_). This includes response 42 // fetches (the same ones as in total_response_bytes_). This includes response
40 // headers and intermediate responses such as 30xs. 43 // headers and intermediate responses such as 30xs.
41 optional uint64 network_bytes = 6; 44 optional uint64 network_bytes = 6;
42 45
43 // The total number of manifest URLs that the precache session started with. 46 // The total number of manifest URLs that the precache session started with.
44 optional uint64 num_manifest_urls = 7; 47 optional uint64 num_manifest_urls = 7;
45 48
49 // The total number of resource URLs that the precache session gathered from
50 // the manifests.
51 optional uint64 num_resource_urls = 9;
52
46 // The internal value of a base::Time object representing the precache 53 // The internal value of a base::Time object representing the precache
47 // session start time. The start time is the time just before when top hosts 54 // session start time. The start time is the time just before when top hosts
48 // are requested. 55 // are requested.
49 optional int64 start_time = 8; 56 optional int64 start_time = 8;
50 }; 57 };
OLDNEW
« no previous file with comments | « components/precache/core/proto/precache.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698