| 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_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 "base/scoped_ptr.h" | 
| 9 #include "net/disk_cache/disk_cache.h" | 9 #include "net/disk_cache/disk_cache.h" | 
| 10 #include "net/disk_cache/storage_block.h" | 10 #include "net/disk_cache/storage_block.h" | 
| 11 #include "net/disk_cache/storage_block-inl.h" | 11 #include "net/disk_cache/storage_block-inl.h" | 
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 182   BackendImpl* backend_;      // Back pointer to the cache. | 182   BackendImpl* backend_;      // Back pointer to the cache. | 
| 183   scoped_array<char> user_buffers_[kNumStreams];  // Store user data. | 183   scoped_array<char> user_buffers_[kNumStreams];  // Store user data. | 
| 184   // Files to store external user data and key. | 184   // Files to store external user data and key. | 
| 185   scoped_refptr<File> files_[kNumStreams + 1]; | 185   scoped_refptr<File> files_[kNumStreams + 1]; | 
| 186   // Copy of the file used to store the key. We don't own this object. | 186   // Copy of the file used to store the key. We don't own this object. | 
| 187   mutable File* key_file_; | 187   mutable File* key_file_; | 
| 188   int unreported_size_[kNumStreams];  // Bytes not reported yet to the backend. | 188   int unreported_size_[kNumStreams];  // Bytes not reported yet to the backend. | 
| 189   bool doomed_;               // True if this entry was removed from the cache. | 189   bool doomed_;               // True if this entry was removed from the cache. | 
| 190   scoped_ptr<SparseControl> sparse_;  // Support for sparse entries. | 190   scoped_ptr<SparseControl> sparse_;  // Support for sparse entries. | 
| 191 | 191 | 
| 192   DISALLOW_EVIL_CONSTRUCTORS(EntryImpl); | 192   DISALLOW_COPY_AND_ASSIGN(EntryImpl); | 
| 193 }; | 193 }; | 
| 194 | 194 | 
| 195 }  // namespace disk_cache | 195 }  // namespace disk_cache | 
| 196 | 196 | 
| 197 #endif  // NET_DISK_CACHE_ENTRY_IMPL_H_ | 197 #endif  // NET_DISK_CACHE_ENTRY_IMPL_H_ | 
| OLD | NEW | 
|---|