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_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/containers/hash_tables.h" |
10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
11 #include "base/hash_tables.h" | |
12 #include "base/timer.h" | 12 #include "base/timer.h" |
13 #include "net/disk_cache/block_files.h" | 13 #include "net/disk_cache/block_files.h" |
14 #include "net/disk_cache/disk_cache.h" | 14 #include "net/disk_cache/disk_cache.h" |
15 #include "net/disk_cache/eviction.h" | 15 #include "net/disk_cache/eviction.h" |
16 #include "net/disk_cache/in_flight_backend_io.h" | 16 #include "net/disk_cache/in_flight_backend_io.h" |
17 #include "net/disk_cache/rankings.h" | 17 #include "net/disk_cache/rankings.h" |
18 #include "net/disk_cache/stats.h" | 18 #include "net/disk_cache/stats.h" |
19 #include "net/disk_cache/stress_support.h" | 19 #include "net/disk_cache/stress_support.h" |
20 #include "net/disk_cache/trace.h" | 20 #include "net/disk_cache/trace.h" |
21 | 21 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 | 389 |
390 DISALLOW_COPY_AND_ASSIGN(BackendImpl); | 390 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
391 }; | 391 }; |
392 | 392 |
393 // Returns the preferred max cache size given the available disk space. | 393 // Returns the preferred max cache size given the available disk space. |
394 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available); | 394 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available); |
395 | 395 |
396 } // namespace disk_cache | 396 } // namespace disk_cache |
397 | 397 |
398 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ | 398 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ |
OLD | NEW |