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_V3_BACKEND_WORKER_H_ |
8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ | 8 #define NET_DISK_CACHE_V3_BACKEND_WORKER_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" | |
14 #include "net/disk_cache/disk_cache.h" | 13 #include "net/disk_cache/disk_cache.h" |
15 #include "net/disk_cache/eviction.h" | 14 #include "net/disk_cache/v2/block_files.h" |
16 #include "net/disk_cache/in_flight_backend_io.h" | 15 #include "net/disk_cache/v2/eviction.h" |
17 #include "net/disk_cache/rankings.h" | 16 #include "net/disk_cache/v2/in_flight_backend_io.h" |
18 #include "net/disk_cache/stats.h" | 17 #include "net/disk_cache/v2/rankings.h" |
19 #include "net/disk_cache/stress_support.h" | 18 #include "net/disk_cache/v2/stats.h" |
20 #include "net/disk_cache/trace.h" | 19 #include "net/disk_cache/v2/stress_support.h" |
| 20 #include "net/disk_cache/v2/trace.h" |
21 | 21 |
22 namespace disk_cache { | 22 namespace disk_cache { |
23 | 23 |
24 // This class implements the Backend interface. An object of this | 24 // This class implements the Backend interface. An object of this |
25 // class handles the operations of the cache for a particular profile. | 25 // class handles the operations of the cache for a particular profile. |
26 class NET_EXPORT_PRIVATE BackendImpl : public Backend { | 26 class NET_EXPORT_PRIVATE BackendImpl : public Backend { |
27 friend class Eviction; | 27 friend class Eviction; |
28 public: | 28 public: |
29 BackendImpl(const base::FilePath& path, base::MessageLoopProxy* cache_thread, | 29 BackendImpl(const base::FilePath& path, base::MessageLoopProxy* cache_thread, |
30 net::NetLog* net_log); | 30 net::NetLog* net_log); |
(...skipping 19 matching lines...) Expand all Loading... |
50 | 50 |
51 base::FilePath path_; // Path to the folder used as backing storage. | 51 base::FilePath path_; // Path to the folder used as backing storage. |
52 BlockFiles block_files_; // Set of files used to store all data. | 52 BlockFiles block_files_; // Set of files used to store all data. |
53 bool init_; // controls the initialization of the system. | 53 bool init_; // controls the initialization of the system. |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(BackendImpl); | 55 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace disk_cache | 58 } // namespace disk_cache |
59 | 59 |
60 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ | 60 #endif // NET_DISK_CACHE_V3_BACKEND_WORKER_H_ |
OLD | NEW |