Home | History | Annotate | Download | only in extensions

Lines Matching refs:Bucket

7 // represented by a 'Bucket' that holds state for that item for one single
11 // arguments to a unique Bucket (the BucketMapper), and another to determine
80 // (represented by its Bucket) constitutes a quota violation.
84 // Bucket objects (see Below) and how often they are replenished.
86 // The maximum number of tokens a bucket can contain, and is refilled to
90 // Specifies how frequently the bucket is logically refilled with tokens.
94 // A Bucket is how the heuristic portrays an individual item (since quota
100 // come in). So, a bucket has an expiration to denote it has becomes stale.
101 class Bucket {
103 Bucket() : num_tokens_(0) {}
104 // Removes a token from this bucket, and returns true if the bucket had
108 // Returns true if this bucket has tokens to deduct.
111 // Reset this bucket to specification (from internal configuration), to be
122 DISALLOW_COPY_AND_ASSIGN(Bucket);
124 typedef std::list<Bucket*> BucketList;
129 // A helper interface to retrieve the bucket corresponding to |args| from
157 // Determine if the new event occurring at |event_time| involving |bucket|
159 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time) = 0;
178 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time);
189 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time);