OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "base/gtest_prod_util.h" |
9 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "net/base/net_log.h" | 12 #include "net/base/net_log.h" |
12 #include "net/disk_cache/disk_cache.h" | 13 #include "net/disk_cache/disk_cache.h" |
13 #include "testing/gtest/include/gtest/gtest_prod.h" | |
14 | 14 |
15 namespace disk_cache { | 15 namespace disk_cache { |
16 | 16 |
17 class MemBackendImpl; | 17 class MemBackendImpl; |
18 | 18 |
19 // This class implements the Entry interface for the memory-only cache. An | 19 // This class implements the Entry interface for the memory-only cache. An |
20 // object of this class represents a single entry on the cache. We use two | 20 // object of this class represents a single entry on the cache. We use two |
21 // types of entries, parent and child to support sparse caching. | 21 // types of entries, parent and child to support sparse caching. |
22 // | 22 // |
23 // A parent entry is non-sparse until a sparse method is invoked (i.e. | 23 // A parent entry is non-sparse until a sparse method is invoked (i.e. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 bool doomed_; // True if this entry was removed from the cache. | 185 bool doomed_; // True if this entry was removed from the cache. |
186 | 186 |
187 net::BoundNetLog net_log_; | 187 net::BoundNetLog net_log_; |
188 | 188 |
189 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl); | 189 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl); |
190 }; | 190 }; |
191 | 191 |
192 } // namespace disk_cache | 192 } // namespace disk_cache |
193 | 193 |
194 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ | 194 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ |
OLD | NEW |