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_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ |
8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
12 #include <unordered_map> | 12 #include <unordered_map> |
13 | 13 |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
| 18 #include "net/base/net_export.h" |
18 #include "net/disk_cache/blockfile/block_files.h" | 19 #include "net/disk_cache/blockfile/block_files.h" |
19 #include "net/disk_cache/blockfile/eviction.h" | 20 #include "net/disk_cache/blockfile/eviction.h" |
20 #include "net/disk_cache/blockfile/in_flight_backend_io.h" | 21 #include "net/disk_cache/blockfile/in_flight_backend_io.h" |
21 #include "net/disk_cache/blockfile/rankings.h" | 22 #include "net/disk_cache/blockfile/rankings.h" |
22 #include "net/disk_cache/blockfile/stats.h" | 23 #include "net/disk_cache/blockfile/stats.h" |
23 #include "net/disk_cache/blockfile/stress_support.h" | 24 #include "net/disk_cache/blockfile/stress_support.h" |
24 #include "net/disk_cache/blockfile/trace.h" | 25 #include "net/disk_cache/blockfile/trace.h" |
25 #include "net/disk_cache/disk_cache.h" | 26 #include "net/disk_cache/disk_cache.h" |
26 | 27 |
27 namespace base { | 28 namespace base { |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 base::WaitableEvent done_; // Signals the end of background work. | 409 base::WaitableEvent done_; // Signals the end of background work. |
409 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. | 410 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. |
410 base::WeakPtrFactory<BackendImpl> ptr_factory_; | 411 base::WeakPtrFactory<BackendImpl> ptr_factory_; |
411 | 412 |
412 DISALLOW_COPY_AND_ASSIGN(BackendImpl); | 413 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
413 }; | 414 }; |
414 | 415 |
415 } // namespace disk_cache | 416 } // namespace disk_cache |
416 | 417 |
417 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ | 418 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ |
OLD | NEW |