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 #ifndef NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ | 5 #ifndef NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ |
6 #define NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ | 6 #define NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/gtest_prod_util.h" | |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
11 #include "net/disk_cache/disk_cache.h" | 10 #include "net/disk_cache/disk_cache.h" |
12 #include "net/log/net_log.h" | 11 #include "net/log/net_log.h" |
13 | 12 |
14 namespace disk_cache { | 13 namespace disk_cache { |
15 | 14 |
16 class MemBackendImpl; | 15 class MemBackendImpl; |
17 | 16 |
18 // This class implements the Entry interface for the memory-only cache. An | 17 // This class implements the Entry interface for the memory-only cache. An |
19 // object of this class represents a single entry on the cache. We use two | 18 // object of this class represents a single entry on the cache. We use two |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 bool doomed_; // True if this entry was removed from the cache. | 187 bool doomed_; // True if this entry was removed from the cache. |
189 | 188 |
190 net::BoundNetLog net_log_; | 189 net::BoundNetLog net_log_; |
191 | 190 |
192 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl); | 191 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl); |
193 }; | 192 }; |
194 | 193 |
195 } // namespace disk_cache | 194 } // namespace disk_cache |
196 | 195 |
197 #endif // NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ | 196 #endif // NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ |
OLD | NEW |