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. | 5 // See net/disk_cache/disk_cache.h for the public interface. |
6 | 6 |
7 #ifndef NET_DISK_CACHE_BLOCK_FILES_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BLOCK_FILES_H_ |
8 #define NET_DISK_CACHE_BLOCK_FILES_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_BLOCK_FILES_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 #include "net/disk_cache/addr.h" | 16 #include "net/disk_cache/blockfile/addr.h" |
17 #include "net/disk_cache/disk_format_base.h" | 17 #include "net/disk_cache/blockfile/disk_format_base.h" |
18 #include "net/disk_cache/mapped_file.h" | 18 #include "net/disk_cache/blockfile/mapped_file.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class ThreadChecker; | 21 class ThreadChecker; |
22 } | 22 } |
23 | 23 |
24 namespace disk_cache { | 24 namespace disk_cache { |
25 | 25 |
26 // An instance of this class represents the header of a block file in memory. | 26 // An instance of this class represents the header of a block file in memory. |
27 // Note that this class doesn't perform any file operation (as in it only deals | 27 // Note that this class doesn't perform any file operation (as in it only deals |
28 // with entities in memory). | 28 // with entities in memory). |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_ZeroSizeFile); | 159 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_ZeroSizeFile); |
160 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_TruncatedFile); | 160 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_TruncatedFile); |
161 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_InvalidFile); | 161 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_InvalidFile); |
162 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_Stats); | 162 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_Stats); |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(BlockFiles); | 164 DISALLOW_COPY_AND_ASSIGN(BlockFiles); |
165 }; | 165 }; |
166 | 166 |
167 } // namespace disk_cache | 167 } // namespace disk_cache |
168 | 168 |
169 #endif // NET_DISK_CACHE_BLOCK_FILES_H_ | 169 #endif // NET_DISK_CACHE_BLOCKFILE_BLOCK_FILES_H_ |
OLD | NEW |