OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BACKEND_IMPL_H_ | 7 #ifndef NET_DISK_CACHE_BACKEND_IMPL_H_ |
8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ | 8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 bool read_only_; // Prevents updates of the rankings data (used by tools). | 296 bool read_only_; // Prevents updates of the rankings data (used by tools). |
297 bool disabled_; | 297 bool disabled_; |
298 bool new_eviction_; // What eviction algorithm should be used. | 298 bool new_eviction_; // What eviction algorithm should be used. |
299 bool first_timer_; // True if the timer has not been called. | 299 bool first_timer_; // True if the timer has not been called. |
300 | 300 |
301 Stats stats_; // Usage statistcs. | 301 Stats stats_; // Usage statistcs. |
302 base::RepeatingTimer<BackendImpl> timer_; // Usage timer. | 302 base::RepeatingTimer<BackendImpl> timer_; // Usage timer. |
303 scoped_refptr<TraceObject> trace_object_; // Inits internal tracing. | 303 scoped_refptr<TraceObject> trace_object_; // Inits internal tracing. |
304 ScopedRunnableMethodFactory<BackendImpl> factory_; | 304 ScopedRunnableMethodFactory<BackendImpl> factory_; |
305 | 305 |
306 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); | 306 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
307 }; | 307 }; |
308 | 308 |
309 // Returns the prefered max cache size given the available disk space. | 309 // Returns the prefered max cache size given the available disk space. |
310 int PreferedCacheSize(int64 available); | 310 int PreferedCacheSize(int64 available); |
311 | 311 |
312 } // namespace disk_cache | 312 } // namespace disk_cache |
313 | 313 |
314 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ | 314 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ |
OLD | NEW |