Lines Matching refs:cache_
77 mutable CacheImpl cache_;
86 : cache_(max_cache_size),
87 last_add_start_(cache_.rend()),
98 DCHECK_LE(items.size(), cache_.max_size());
101 last_add_start_ = cache_.rend();
107 cache_.Put(id, items[i]);
109 last_add_start_ = --cache_.rend();
116 DCHECK_LE(items.size(), cache_.max_size());
119 last_add_start_ = cache_.rend();
130 cache_.Put(item_id.first, item_id.second);
134 // cache_.Put() can invalidate the iterator |last_add_start_| is pointing to.
136 // |cache_|.
137 last_add_start_ = cache_.rend();
147 it != cache_.rend(); ++it) {
158 typename CacheImpl::const_iterator cache_it = cache_.Peek(restricted_id);
159 if (cache_it == cache_.end())