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_STORAGE_BLOCK_H__ | 7 #ifndef NET_DISK_CACHE_STORAGE_BLOCK_H__ |
8 #define NET_DISK_CACHE_STORAGE_BLOCK_H__ | 8 #define NET_DISK_CACHE_STORAGE_BLOCK_H__ |
9 | 9 |
10 #include "net/disk_cache/addr.h" | 10 #include "net/disk_cache/addr.h" |
11 #include "net/disk_cache/mapped_file.h" | 11 #include "net/disk_cache/mapped_file.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void AllocateData(); | 75 void AllocateData(); |
76 void DeleteData(); | 76 void DeleteData(); |
77 | 77 |
78 T* data_; | 78 T* data_; |
79 MappedFile* file_; | 79 MappedFile* file_; |
80 Addr address_; | 80 Addr address_; |
81 bool modified_; | 81 bool modified_; |
82 bool own_data_; // Is data_ owned by this object or shared with someone else. | 82 bool own_data_; // Is data_ owned by this object or shared with someone else. |
83 bool extended_; // Used to store an entry of more than one block. | 83 bool extended_; // Used to store an entry of more than one block. |
84 | 84 |
85 DISALLOW_EVIL_CONSTRUCTORS(StorageBlock); | 85 DISALLOW_COPY_AND_ASSIGN(StorageBlock); |
86 }; | 86 }; |
87 | 87 |
88 typedef StorageBlock<EntryStore> CacheEntryBlock; | 88 typedef StorageBlock<EntryStore> CacheEntryBlock; |
89 typedef StorageBlock<RankingsNode> CacheRankingsBlock; | 89 typedef StorageBlock<RankingsNode> CacheRankingsBlock; |
90 | 90 |
91 } // namespace disk_cache | 91 } // namespace disk_cache |
92 | 92 |
93 #endif // NET_DISK_CACHE_STORAGE_BLOCK_H__ | 93 #endif // NET_DISK_CACHE_STORAGE_BLOCK_H__ |
OLD | NEW |