| 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 CalculateSizeOfAllEntries(const CompletionCallback& callback) override; |
| 83 scoped_ptr<Iterator> CreateIterator() override; | 84 scoped_ptr<Iterator> CreateIterator() override; |
| 84 void GetStats(base::StringPairs* stats) override {} | 85 void GetStats(base::StringPairs* stats) override {} |
| 85 void OnExternalCacheHit(const std::string& key) override; | 86 void OnExternalCacheHit(const std::string& key) override; |
| 86 | 87 |
| 87 private: | 88 private: |
| 88 class MemIterator; | 89 class MemIterator; |
| 89 friend class MemIterator; | 90 friend class MemIterator; |
| 90 | 91 |
| 91 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; | 92 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; |
| 92 | 93 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 116 net::NetLog* net_log_; | 117 net::NetLog* net_log_; |
| 117 | 118 |
| 118 base::WeakPtrFactory<MemBackendImpl> weak_factory_; | 119 base::WeakPtrFactory<MemBackendImpl> weak_factory_; |
| 119 | 120 |
| 120 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); | 121 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace disk_cache | 124 } // namespace disk_cache |
| 124 | 125 |
| 125 #endif // NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ | 126 #endif // NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ |
| OLD | NEW |