OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_ENTRY_IMPL_H_ | 5 #ifndef NET_DISK_CACHE_ENTRY_IMPL_H_ |
6 #define NET_DISK_CACHE_ENTRY_IMPL_H_ | 6 #define NET_DISK_CACHE_ENTRY_IMPL_H_ |
7 | 7 |
| 8 #include "base/scoped_ptr.h" |
8 #include "net/disk_cache/disk_cache.h" | 9 #include "net/disk_cache/disk_cache.h" |
9 #include "net/disk_cache/storage_block.h" | 10 #include "net/disk_cache/storage_block.h" |
10 #include "net/disk_cache/storage_block-inl.h" | 11 #include "net/disk_cache/storage_block-inl.h" |
11 | 12 |
12 namespace disk_cache { | 13 namespace disk_cache { |
13 | 14 |
14 class BackendImpl; | 15 class BackendImpl; |
15 | 16 |
16 // This class implements the Entry interface. An object of this | 17 // This class implements the Entry interface. An object of this |
17 // class represents a single entry on the cache. | 18 // class represents a single entry on the cache. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 int unreported_size_[NUM_STREAMS]; // Bytes not reported yet to the backend. | 147 int unreported_size_[NUM_STREAMS]; // Bytes not reported yet to the backend. |
147 bool doomed_; // True if this entry was removed from the cache. | 148 bool doomed_; // True if this entry was removed from the cache. |
148 bool need_file_[NUM_STREAMS]; // True if stream is prepared as an external | 149 bool need_file_[NUM_STREAMS]; // True if stream is prepared as an external |
149 // file. | 150 // file. |
150 DISALLOW_EVIL_CONSTRUCTORS(EntryImpl); | 151 DISALLOW_EVIL_CONSTRUCTORS(EntryImpl); |
151 }; | 152 }; |
152 | 153 |
153 } // namespace disk_cache | 154 } // namespace disk_cache |
154 | 155 |
155 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ | 156 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ |
OLD | NEW |