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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/base/net_log.h" | 10 #include "net/base/net_log.h" |
11 #include "net/disk_cache/disk_cache.h" | 11 #include "net/disk_cache/disk_cache.h" |
12 #include "net/disk_cache/storage_block.h" | 12 #include "net/disk_cache/storage_block.h" |
13 #include "net/disk_cache/storage_block-inl.h" | 13 #include "net/disk_cache/storage_block-inl.h" |
14 | 14 |
15 namespace disk_cache { | 15 namespace disk_cache { |
16 | 16 |
17 class BackendImpl; | 17 class BackendImpl; |
18 class SparseControl; | 18 class SparseControl; |
19 | 19 |
20 // This class implements the Entry interface. An object of this | 20 // This class implements the Entry interface. An object of this |
21 // class represents a single entry on the cache. | 21 // class represents a single entry on the cache. |
22 class NET_TEST EntryImpl : public Entry, public base::RefCounted<EntryImpl> { | 22 class NET_EXPORT_PRIVATE EntryImpl |
| 23 : public Entry, |
| 24 public base::RefCounted<EntryImpl> { |
23 friend class base::RefCounted<EntryImpl>; | 25 friend class base::RefCounted<EntryImpl>; |
24 friend class SparseControl; | 26 friend class SparseControl; |
25 public: | 27 public: |
26 enum Operation { | 28 enum Operation { |
27 kRead, | 29 kRead, |
28 kWrite, | 30 kWrite, |
29 kSparseRead, | 31 kSparseRead, |
30 kSparseWrite, | 32 kSparseWrite, |
31 kAsyncIO | 33 kAsyncIO |
32 }; | 34 }; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 scoped_ptr<SparseControl> sparse_; // Support for sparse entries. | 251 scoped_ptr<SparseControl> sparse_; // Support for sparse entries. |
250 | 252 |
251 net::BoundNetLog net_log_; | 253 net::BoundNetLog net_log_; |
252 | 254 |
253 DISALLOW_COPY_AND_ASSIGN(EntryImpl); | 255 DISALLOW_COPY_AND_ASSIGN(EntryImpl); |
254 }; | 256 }; |
255 | 257 |
256 } // namespace disk_cache | 258 } // namespace disk_cache |
257 | 259 |
258 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ | 260 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ |
OLD | NEW |