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

Side by Side Diff: net/disk_cache/blockfile/backend_impl_v3.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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
« no previous file with comments | « net/disk_cache/blockfile/backend_impl.cc ('k') | net/disk_cache/blockfile/backend_impl_v3.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See net/disk_cache/disk_cache.h for the public interface of the cache. 5 // See net/disk_cache/disk_cache.h for the public interface of the cache.
6 6
7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_
8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 bool restarted_; 264 bool restarted_;
265 bool read_only_; // Prevents updates of the rankings data (used by tools). 265 bool read_only_; // Prevents updates of the rankings data (used by tools).
266 bool disabled_; 266 bool disabled_;
267 bool lru_eviction_; // What eviction algorithm should be used. 267 bool lru_eviction_; // What eviction algorithm should be used.
268 bool first_timer_; // True if the timer has not been called. 268 bool first_timer_; // True if the timer has not been called.
269 bool user_load_; // True if we see a high load coming from the caller. 269 bool user_load_; // True if we see a high load coming from the caller.
270 270
271 net::NetLog* net_log_; 271 net::NetLog* net_log_;
272 272
273 Stats stats_; // Usage statistics. 273 Stats stats_; // Usage statistics.
274 scoped_ptr<base::RepeatingTimer<BackendImplV3> > timer_; // Usage timer. 274 scoped_ptr<base::RepeatingTimer> timer_; // Usage timer.
275 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. 275 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing.
276 base::WeakPtrFactory<BackendImplV3> ptr_factory_; 276 base::WeakPtrFactory<BackendImplV3> ptr_factory_;
277 277
278 DISALLOW_COPY_AND_ASSIGN(BackendImplV3); 278 DISALLOW_COPY_AND_ASSIGN(BackendImplV3);
279 }; 279 };
280 280
281 } // namespace disk_cache 281 } // namespace disk_cache
282 282
283 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ 283 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/backend_impl.cc ('k') | net/disk_cache/blockfile/backend_impl_v3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698