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

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

Issue 2335913002: Add daily quota for precache (Closed)
Patch Set: Addressed sclittle@ comments Created 4 years, 3 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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698