OLD | NEW |
1 // Copyright (c) 2006-2009 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 #ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ | 5 #ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ |
6 #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ | 6 #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "net/disk_cache/disk_cache.h" | 10 #include "net/disk_cache/disk_cache.h" |
11 #include "testing/gtest/include/gtest/gtest_prod.h" | 11 #include "testing/gtest/include/gtest/gtest_prod.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 MemEntryImpl* next_; // Pointers for the LRU list. | 152 MemEntryImpl* next_; // Pointers for the LRU list. |
153 MemEntryImpl* prev_; | 153 MemEntryImpl* prev_; |
154 MemEntryImpl* parent_; // Pointer to the parent entry. | 154 MemEntryImpl* parent_; // Pointer to the parent entry. |
155 scoped_ptr<EntryMap> children_; | 155 scoped_ptr<EntryMap> children_; |
156 | 156 |
157 base::Time last_modified_; // LRU information. | 157 base::Time last_modified_; // LRU information. |
158 base::Time last_used_; | 158 base::Time last_used_; |
159 MemBackendImpl* backend_; // Back pointer to the cache. | 159 MemBackendImpl* backend_; // Back pointer to the cache. |
160 bool doomed_; // True if this entry was removed from the cache. | 160 bool doomed_; // True if this entry was removed from the cache. |
161 | 161 |
162 DISALLOW_EVIL_CONSTRUCTORS(MemEntryImpl); | 162 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace disk_cache | 165 } // namespace disk_cache |
166 | 166 |
167 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ | 167 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ |
OLD | NEW |