OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |