| 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_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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "net/base/net_log.h" | 9 #include "net/base/net_log.h" |
| 10 #include "net/disk_cache/disk_cache.h" | 10 #include "net/disk_cache/disk_cache.h" |
| 11 #include "net/disk_cache/disk_format.h" |
| 11 #include "net/disk_cache/storage_block.h" | 12 #include "net/disk_cache/storage_block.h" |
| 12 #include "net/disk_cache/storage_block-inl.h" | 13 #include "net/disk_cache/storage_block-inl.h" |
| 13 | 14 |
| 14 namespace disk_cache { | 15 namespace disk_cache { |
| 15 | 16 |
| 16 class BackendImpl; | 17 class BackendImpl; |
| 17 class InFlightBackendIO; | 18 class InFlightBackendIO; |
| 18 class SparseControl; | 19 class SparseControl; |
| 20 typedef StorageBlock<EntryStore> CacheEntryBlock; |
| 21 typedef StorageBlock<RankingsNode> CacheRankingsBlock; |
| 19 | 22 |
| 20 // This class implements the Entry interface. An object of this | 23 // This class implements the Entry interface. An object of this |
| 21 // class represents a single entry on the cache. | 24 // class represents a single entry on the cache. |
| 22 class NET_EXPORT_PRIVATE EntryImpl | 25 class NET_EXPORT_PRIVATE EntryImpl |
| 23 : public Entry, | 26 : public Entry, |
| 24 public base::RefCounted<EntryImpl> { | 27 public base::RefCounted<EntryImpl> { |
| 25 friend class base::RefCounted<EntryImpl>; | 28 friend class base::RefCounted<EntryImpl>; |
| 26 friend class SparseControl; | 29 friend class SparseControl; |
| 27 public: | 30 public: |
| 28 enum Operation { | 31 enum Operation { |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 scoped_ptr<SparseControl> sparse_; // Support for sparse entries. | 269 scoped_ptr<SparseControl> sparse_; // Support for sparse entries. |
| 267 | 270 |
| 268 net::BoundNetLog net_log_; | 271 net::BoundNetLog net_log_; |
| 269 | 272 |
| 270 DISALLOW_COPY_AND_ASSIGN(EntryImpl); | 273 DISALLOW_COPY_AND_ASSIGN(EntryImpl); |
| 271 }; | 274 }; |
| 272 | 275 |
| 273 } // namespace disk_cache | 276 } // namespace disk_cache |
| 274 | 277 |
| 275 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ | 278 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ |
| OLD | NEW |