OLD | NEW |
1 // Copyright (c) 2010 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 // See net/disk_cache/disk_cache.h for the public interface. | 5 // See net/disk_cache/disk_cache.h for the public interface. |
6 | 6 |
7 #ifndef NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_ | 7 #ifndef NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_ |
8 #define NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_ | 8 #define NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_ |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace disk_cache { | 12 namespace disk_cache { |
13 | 13 |
14 class MemEntryImpl; | 14 class MemEntryImpl; |
15 | 15 |
16 // This class handles the ranking information for the memory-only cache. | 16 // This class handles the ranking information for the memory-only cache. |
17 class MemRankings { | 17 class MemRankings { |
18 public: | 18 public: |
19 MemRankings() : head_(NULL), tail_(NULL) {} | 19 MemRankings() : head_(NULL), tail_(NULL) {} |
20 ~MemRankings(); | 20 ~MemRankings(); |
(...skipping 14 matching lines...) Expand all Loading... |
35 private: | 35 private: |
36 MemEntryImpl* head_; | 36 MemEntryImpl* head_; |
37 MemEntryImpl* tail_; | 37 MemEntryImpl* tail_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(MemRankings); | 39 DISALLOW_COPY_AND_ASSIGN(MemRankings); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace disk_cache | 42 } // namespace disk_cache |
43 | 43 |
44 #endif // NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_ | 44 #endif // NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_ |
OLD | NEW |