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 // See net/disk_cache/disk_cache.h for the public interface of the cache. | 5 // See net/disk_cache/disk_cache.h for the public interface of the cache. |
6 | 6 |
7 #ifndef NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ | 7 #ifndef NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ |
8 #define NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ | 8 #define NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
11 | 11 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void AddStorageSize(int32 bytes); | 87 void AddStorageSize(int32 bytes); |
88 void SubstractStorageSize(int32 bytes); | 88 void SubstractStorageSize(int32 bytes); |
89 | 89 |
90 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; | 90 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; |
91 | 91 |
92 EntryMap entries_; | 92 EntryMap entries_; |
93 MemRankings rankings_; // Rankings to be able to trim the cache. | 93 MemRankings rankings_; // Rankings to be able to trim the cache. |
94 int32 max_size_; // Maximum data size for this instance. | 94 int32 max_size_; // Maximum data size for this instance. |
95 int32 current_size_; | 95 int32 current_size_; |
96 | 96 |
97 DISALLOW_EVIL_CONSTRUCTORS(MemBackendImpl); | 97 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace disk_cache | 100 } // namespace disk_cache |
101 | 101 |
102 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ | 102 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ |
OLD | NEW |