| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BLOCK_FILES_H__ |
| 8 #define NET_DISK_CACHE_BLOCK_FILES_H__ | 8 #define NET_DISK_CACHE_BLOCK_FILES_H__ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 FilePath Name(int index); | 73 FilePath Name(int index); |
| 74 | 74 |
| 75 bool init_; | 75 bool init_; |
| 76 char* zero_buffer_; // Buffer to speed-up cleaning deleted entries. | 76 char* zero_buffer_; // Buffer to speed-up cleaning deleted entries. |
| 77 FilePath path_; // Path to the backing folder. | 77 FilePath path_; // Path to the backing folder. |
| 78 std::vector<MappedFile*> block_files_; // The actual files. | 78 std::vector<MappedFile*> block_files_; // The actual files. |
| 79 | 79 |
| 80 FRIEND_TEST(DiskCacheTest, BlockFiles_ZeroSizeFile); | 80 FRIEND_TEST(DiskCacheTest, BlockFiles_ZeroSizeFile); |
| 81 FRIEND_TEST(DiskCacheTest, BlockFiles_InvalidFile); | 81 FRIEND_TEST(DiskCacheTest, BlockFiles_InvalidFile); |
| 82 | 82 |
| 83 DISALLOW_EVIL_CONSTRUCTORS(BlockFiles); | 83 DISALLOW_COPY_AND_ASSIGN(BlockFiles); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace disk_cache | 86 } // namespace disk_cache |
| 87 | 87 |
| 88 #endif // NET_DISK_CACHE_BLOCK_FILES_H__ | 88 #endif // NET_DISK_CACHE_BLOCK_FILES_H__ |
| OLD | NEW |