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_BLOCKFILE_BACKEND_IMPL_H_ |
8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "net/disk_cache/block_files.h" | 13 #include "net/disk_cache/blockfile/block_files.h" |
| 14 #include "net/disk_cache/blockfile/eviction.h" |
| 15 #include "net/disk_cache/blockfile/in_flight_backend_io.h" |
| 16 #include "net/disk_cache/blockfile/rankings.h" |
| 17 #include "net/disk_cache/blockfile/stats.h" |
| 18 #include "net/disk_cache/blockfile/stress_support.h" |
| 19 #include "net/disk_cache/blockfile/trace.h" |
14 #include "net/disk_cache/disk_cache.h" | 20 #include "net/disk_cache/disk_cache.h" |
15 #include "net/disk_cache/eviction.h" | |
16 #include "net/disk_cache/in_flight_backend_io.h" | |
17 #include "net/disk_cache/rankings.h" | |
18 #include "net/disk_cache/stats.h" | |
19 #include "net/disk_cache/stress_support.h" | |
20 #include "net/disk_cache/trace.h" | |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 class NetLog; | 23 class NetLog; |
24 } // namespace net | 24 } // namespace net |
25 | 25 |
26 namespace disk_cache { | 26 namespace disk_cache { |
27 | 27 |
28 struct Index; | 28 struct Index; |
29 | 29 |
30 enum BackendFlags { | 30 enum BackendFlags { |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 scoped_ptr<base::RepeatingTimer<BackendImpl> > timer_; // Usage timer. | 390 scoped_ptr<base::RepeatingTimer<BackendImpl> > timer_; // Usage timer. |
391 base::WaitableEvent done_; // Signals the end of background work. | 391 base::WaitableEvent done_; // Signals the end of background work. |
392 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. | 392 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. |
393 base::WeakPtrFactory<BackendImpl> ptr_factory_; | 393 base::WeakPtrFactory<BackendImpl> ptr_factory_; |
394 | 394 |
395 DISALLOW_COPY_AND_ASSIGN(BackendImpl); | 395 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
396 }; | 396 }; |
397 | 397 |
398 } // namespace disk_cache | 398 } // namespace disk_cache |
399 | 399 |
400 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ | 400 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ |
OLD | NEW |