OLD | NEW |
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // |total_resources_count| resource URLs are fetched. | 98 // |total_resources_count| resource URLs are fetched. |
99 optional uint32 total_resources_count = 7 [default = 999999]; | 99 optional uint32 total_resources_count = 7 [default = 999999]; |
100 | 100 |
101 // The minimum visit-adjusted weight for which a resource will be downloaded. | 101 // The minimum visit-adjusted weight for which a resource will be downloaded. |
102 optional double min_weight = 8 [default = 0]; | 102 optional double min_weight = 8 [default = 0]; |
103 | 103 |
104 // Whether to sort resources by weight, descending, before fetching. This | 104 // Whether to sort resources by weight, descending, before fetching. This |
105 // affects the fetcher's behavior with respect to max_bytes_total and | 105 // affects the fetcher's behavior with respect to max_bytes_total and |
106 // total_resources_count. | 106 // total_resources_count. |
107 optional bool global_ranking = 9 [default = false]; | 107 optional bool global_ranking = 9 [default = false]; |
| 108 |
| 109 // If true, resource fetches are only made over the network for a given URL if |
| 110 // an existing cache entry exists and has revalidation headers. |
| 111 optional bool revalidation_only = 10 [default = false]; |
108 }; | 112 }; |
OLD | NEW |