| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 OldCompletionCallback* callback) OVERRIDE; | 68 OldCompletionCallback* callback) OVERRIDE; |
| 69 virtual int OpenEntry(const std::string& key, Entry** entry, | 69 virtual int OpenEntry(const std::string& key, Entry** entry, |
| 70 const net::CompletionCallback& callback) OVERRIDE; | 70 const net::CompletionCallback& callback) OVERRIDE; |
| 71 virtual int CreateEntry(const std::string& key, Entry** entry, | 71 virtual int CreateEntry(const std::string& key, Entry** entry, |
| 72 OldCompletionCallback* callback) OVERRIDE; | 72 OldCompletionCallback* callback) OVERRIDE; |
| 73 virtual int CreateEntry(const std::string& key, Entry** entry, | 73 virtual int CreateEntry(const std::string& key, Entry** entry, |
| 74 const net::CompletionCallback& callback) OVERRIDE; | 74 const net::CompletionCallback& callback) OVERRIDE; |
| 75 virtual int DoomEntry(const std::string& key, | 75 virtual int DoomEntry(const std::string& key, |
| 76 OldCompletionCallback* callback) OVERRIDE; | 76 OldCompletionCallback* callback) OVERRIDE; |
| 77 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE; | 77 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE; |
| 78 virtual int DoomAllEntries(const net::CompletionCallback& callback) OVERRIDE; |
| 78 virtual int DoomEntriesBetween(const base::Time initial_time, | 79 virtual int DoomEntriesBetween(const base::Time initial_time, |
| 79 const base::Time end_time, | 80 const base::Time end_time, |
| 80 OldCompletionCallback* callback) OVERRIDE; | 81 OldCompletionCallback* callback) OVERRIDE; |
| 82 virtual int DoomEntriesBetween( |
| 83 const base::Time initial_time, |
| 84 const base::Time end_time, |
| 85 const net::CompletionCallback& callback) OVERRIDE; |
| 81 virtual int DoomEntriesSince(const base::Time initial_time, | 86 virtual int DoomEntriesSince(const base::Time initial_time, |
| 82 OldCompletionCallback* callback) OVERRIDE; | 87 OldCompletionCallback* callback) OVERRIDE; |
| 83 virtual int OpenNextEntry(void** iter, Entry** next_entry, | 88 virtual int OpenNextEntry(void** iter, Entry** next_entry, |
| 84 OldCompletionCallback* callback) OVERRIDE; | 89 OldCompletionCallback* callback) OVERRIDE; |
| 85 virtual void EndEnumeration(void** iter) OVERRIDE; | 90 virtual void EndEnumeration(void** iter) OVERRIDE; |
| 86 virtual void GetStats( | 91 virtual void GetStats( |
| 87 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {} | 92 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {} |
| 88 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; | 93 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; |
| 89 | 94 |
| 90 private: | 95 private: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 115 int32 current_size_; | 120 int32 current_size_; |
| 116 | 121 |
| 117 net::NetLog* net_log_; | 122 net::NetLog* net_log_; |
| 118 | 123 |
| 119 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); | 124 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); |
| 120 }; | 125 }; |
| 121 | 126 |
| 122 } // namespace disk_cache | 127 } // namespace disk_cache |
| 123 | 128 |
| 124 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ | 129 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ |
| OLD | NEW |