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 // 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_MEMORY_MEM_BACKEND_IMPL_H_ | 7 #ifndef NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ |
8 #define NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ | 8 #define NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 Entry** entry, | 73 Entry** entry, |
74 const CompletionCallback& callback) override; | 74 const CompletionCallback& callback) override; |
75 int DoomEntry(const std::string& key, | 75 int DoomEntry(const std::string& key, |
76 const CompletionCallback& callback) override; | 76 const CompletionCallback& callback) override; |
77 int DoomAllEntries(const CompletionCallback& callback) override; | 77 int DoomAllEntries(const CompletionCallback& callback) override; |
78 int DoomEntriesBetween(base::Time initial_time, | 78 int DoomEntriesBetween(base::Time initial_time, |
79 base::Time end_time, | 79 base::Time end_time, |
80 const CompletionCallback& callback) override; | 80 const CompletionCallback& callback) override; |
81 int DoomEntriesSince(base::Time initial_time, | 81 int DoomEntriesSince(base::Time initial_time, |
82 const CompletionCallback& callback) override; | 82 const CompletionCallback& callback) override; |
| 83 int CalculateSizeOfEntriesBetween( |
| 84 base::Time initial_time, |
| 85 base::Time end_time, |
| 86 const CompletionCallback& callback) override; |
83 scoped_ptr<Iterator> CreateIterator() override; | 87 scoped_ptr<Iterator> CreateIterator() override; |
84 void GetStats(base::StringPairs* stats) override {} | 88 void GetStats(base::StringPairs* stats) override {} |
85 void OnExternalCacheHit(const std::string& key) override; | 89 void OnExternalCacheHit(const std::string& key) override; |
86 | 90 |
87 private: | 91 private: |
88 class MemIterator; | 92 class MemIterator; |
89 friend class MemIterator; | 93 friend class MemIterator; |
90 | 94 |
91 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; | 95 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; |
92 | 96 |
(...skipping 23 matching lines...) Expand all Loading... |
116 net::NetLog* net_log_; | 120 net::NetLog* net_log_; |
117 | 121 |
118 base::WeakPtrFactory<MemBackendImpl> weak_factory_; | 122 base::WeakPtrFactory<MemBackendImpl> weak_factory_; |
119 | 123 |
120 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); | 124 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); |
121 }; | 125 }; |
122 | 126 |
123 } // namespace disk_cache | 127 } // namespace disk_cache |
124 | 128 |
125 #endif // NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ | 129 #endif // NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ |
OLD | NEW |