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

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

Issue 2738613003: predictors: Add Manifest table to ResourcePrefetchPredictor. (Closed)
Patch Set: Add caution message. 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
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor_unittest.cc ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 package precache; 7 package precache;
8 8
9 // Chrome requires this. 9 // Chrome requires this.
10 option optimize_for = LITE_RUNTIME; 10 option optimize_for = LITE_RUNTIME;
(...skipping 15 matching lines...) Expand all
26 // This is a non-negative number, with higher being more important. Its value 26 // This is a non-negative number, with higher being more important. Its value
27 // depends on PrecacheConfigurationSettings.resource_weight_function. 27 // depends on PrecacheConfigurationSettings.resource_weight_function.
28 optional double weight = 4; 28 optional double weight = 4;
29 }; 29 };
30 30
31 message PrecacheManifestId { 31 message PrecacheManifestId {
32 optional int64 id = 1; 32 optional int64 id = 1;
33 }; 33 };
34 34
35 // A manifest of cacheable resources to be precached for a specific host. 35 // A manifest of cacheable resources to be precached for a specific host.
36 // CAUTION: When any change is done here, bump kDatabaseVersion in
37 // chrome/browser/predictors/resource_prefetch_predictor_tables.h
36 message PrecacheManifest { 38 message PrecacheManifest {
37 // List of resources that we predict that the user will need if they are 39 // List of resources that we predict that the user will need if they are
38 // likely to fetch the host. 40 // likely to fetch the host.
39 repeated PrecacheResource resource = 1; 41 repeated PrecacheResource resource = 1;
40 42
41 // Experiments running on this manifest. 43 // Experiments running on this manifest.
42 optional PrecacheExperiments experiments = 2; 44 optional PrecacheExperiments experiments = 2;
43 45
44 // Identifier for the manifest sent by the server. 46 // Identifier for the manifest sent by the server.
45 optional PrecacheManifestId id = 3; 47 optional PrecacheManifestId id = 3;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // days, given that weight_ratio is a probability that a visit to the host 137 // days, given that weight_ratio is a probability that a visit to the host
136 // will request a resource, and host_visits is an estimate of the number of 138 // will request a resource, and host_visits is an estimate of the number of
137 // visits to the host in the next 30 days. 139 // visits to the host in the next 30 days.
138 FUNCTION_NAIVE = 0; 140 FUNCTION_NAIVE = 0;
139 // Models the probability of at least one request, given the same. 141 // Models the probability of at least one request, given the same.
140 FUNCTION_GEOMETRIC = 1; 142 FUNCTION_GEOMETRIC = 1;
141 }; 143 };
142 optional ResourceWeightFunction resource_weight_function = 11 144 optional ResourceWeightFunction resource_weight_function = 11
143 [default = FUNCTION_NAIVE]; 145 [default = FUNCTION_NAIVE];
144 }; 146 };
OLDNEW
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698