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_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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Backend interface. | 64 // Backend interface. |
65 virtual net::CacheType GetCacheType() const OVERRIDE; | 65 virtual net::CacheType GetCacheType() const OVERRIDE; |
66 virtual int32 GetEntryCount() const OVERRIDE; | 66 virtual int32 GetEntryCount() const OVERRIDE; |
67 virtual int OpenEntry(const std::string& key, Entry** entry, | 67 virtual int OpenEntry(const std::string& key, Entry** entry, |
68 const CompletionCallback& callback) OVERRIDE; | 68 const CompletionCallback& callback) OVERRIDE; |
69 virtual int CreateEntry(const std::string& key, Entry** entry, | 69 virtual int CreateEntry(const std::string& key, Entry** entry, |
70 const CompletionCallback& callback) OVERRIDE; | 70 const CompletionCallback& callback) OVERRIDE; |
71 virtual int DoomEntry(const std::string& key, | 71 virtual int DoomEntry(const std::string& key, |
72 const CompletionCallback& callback) OVERRIDE; | 72 const CompletionCallback& callback) OVERRIDE; |
73 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE; | 73 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE; |
74 virtual int DoomEntriesBetween(const base::Time initial_time, | 74 virtual int DoomEntriesBetween(base::Time initial_time, |
75 const base::Time end_time, | 75 base::Time end_time, |
76 const CompletionCallback& callback) OVERRIDE; | 76 const CompletionCallback& callback) OVERRIDE; |
77 virtual int DoomEntriesSince(const base::Time initial_time, | 77 virtual int DoomEntriesSince(base::Time initial_time, |
78 const CompletionCallback& callback) OVERRIDE; | 78 const CompletionCallback& callback) OVERRIDE; |
79 virtual int OpenNextEntry(void** iter, Entry** next_entry, | 79 virtual int OpenNextEntry(void** iter, Entry** next_entry, |
80 const CompletionCallback& callback) OVERRIDE; | 80 const CompletionCallback& callback) OVERRIDE; |
81 virtual void EndEnumeration(void** iter) OVERRIDE; | 81 virtual void EndEnumeration(void** iter) OVERRIDE; |
82 virtual void GetStats( | 82 virtual void GetStats( |
83 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {} | 83 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {} |
84 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; | 84 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; |
85 | 85 |
86 private: | 86 private: |
87 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; | 87 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; |
(...skipping 23 matching lines...) Expand all Loading... |
111 int32 current_size_; | 111 int32 current_size_; |
112 | 112 |
113 net::NetLog* net_log_; | 113 net::NetLog* net_log_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); | 115 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace disk_cache | 118 } // namespace disk_cache |
119 | 119 |
120 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ | 120 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ |
OLD | NEW |