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

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

Issue 2335913002: Add daily quota for precache (Closed)
Patch Set: Addressed sclittle@ comments 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 syntax = "proto2";
6
7 package precache;
8
9 // Chrome requires this.
10 option optimize_for = LITE_RUNTIME;
11
12 // Quota limit and expiry time. This is stored in a database, and not
13 // transferred via network.
14 message PrecacheQuota {
15 // Represents the start time of this quota.
16 optional int64 start_time = 1;
17
18 // The number of hours since start time, this quota will expire.
19 optional uint32 expiry_hours = 2;
20
21 // Maximum number of bytes that can be fetched until this quota expires.
22 optional uint64 remaining = 3;
23 };
OLDNEW
« components/precache/core/precache_fetcher.cc ('K') | « components/precache/core/proto/precache.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698