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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // The maximum number of bytes to download per resource. Downloads of | 77 // The maximum number of bytes to download per resource. Downloads of |
78 // resources larger than this will be cancelled. This max applies only to new | 78 // resources larger than this will be cancelled. This max applies only to new |
79 // downloads; cached resources are not capped. | 79 // downloads; cached resources are not capped. |
80 optional uint64 max_bytes_per_resource = 4 [default = 500000 /* 500 KB */]; | 80 optional uint64 max_bytes_per_resource = 4 [default = 500000 /* 500 KB */]; |
81 | 81 |
82 // The maximum number of bytes per precache run. While precaching, the total | 82 // The maximum number of bytes per precache run. While precaching, the total |
83 // number of bytes used for resources is tallied -- this includes new | 83 // number of bytes used for resources is tallied -- this includes new |
84 // downloads as well as cached resources. After this limit is reached, no | 84 // downloads as well as cached resources. After this limit is reached, no |
85 // other resources will be downloaded. | 85 // other resources will be downloaded. |
86 optional uint64 max_bytes_total = 5 [default = 10000000 /* 10 MB */]; | 86 optional uint64 max_bytes_total = 5 [default = 10000000 /* 10 MB */]; |
| 87 |
| 88 // The maximum number of bytes that can be fetched by precache on a single |
| 89 // day. After this limit is reached, no more resources will be downloaded, |
| 90 // until the quota gets replenished the next day. |
| 91 optional uint64 daily_quota_total = 6 [default = 10000000 /* 10 MB */]; |
87 }; | 92 }; |
OLD | NEW |