| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void InsertIntoRankingList(MemEntryImpl* entry); | 59 void InsertIntoRankingList(MemEntryImpl* entry); |
| 60 | 60 |
| 61 // Remove |entry| from ranking list. This method is only called from | 61 // Remove |entry| from ranking list. This method is only called from |
| 62 // MemEntryImpl to remove a child entry from the ranking list. | 62 // MemEntryImpl to remove a child entry from the ranking list. |
| 63 void RemoveFromRankingList(MemEntryImpl* entry); | 63 void RemoveFromRankingList(MemEntryImpl* entry); |
| 64 | 64 |
| 65 // Backend interface. | 65 // Backend interface. |
| 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 OldCompletionCallback* callback) OVERRIDE; | 68 OldCompletionCallback* callback) OVERRIDE; |
| 69 virtual int OpenEntry(const std::string& key, Entry** entry, |
| 70 const net::CompletionCallback& callback) OVERRIDE; |
| 69 virtual int CreateEntry(const std::string& key, Entry** entry, | 71 virtual int CreateEntry(const std::string& key, Entry** entry, |
| 70 OldCompletionCallback* callback) OVERRIDE; | 72 OldCompletionCallback* callback) OVERRIDE; |
| 73 virtual int CreateEntry(const std::string& key, Entry** entry, |
| 74 const net::CompletionCallback& callback) OVERRIDE; |
| 71 virtual int DoomEntry(const std::string& key, | 75 virtual int DoomEntry(const std::string& key, |
| 72 OldCompletionCallback* callback) OVERRIDE; | 76 OldCompletionCallback* callback) OVERRIDE; |
| 73 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE; | 77 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE; |
| 74 virtual int DoomEntriesBetween(const base::Time initial_time, | 78 virtual int DoomEntriesBetween(const base::Time initial_time, |
| 75 const base::Time end_time, | 79 const base::Time end_time, |
| 76 OldCompletionCallback* callback) OVERRIDE; | 80 OldCompletionCallback* callback) OVERRIDE; |
| 77 virtual int DoomEntriesSince(const base::Time initial_time, | 81 virtual int DoomEntriesSince(const base::Time initial_time, |
| 78 OldCompletionCallback* callback) OVERRIDE; | 82 OldCompletionCallback* callback) OVERRIDE; |
| 79 virtual int OpenNextEntry(void** iter, Entry** next_entry, | 83 virtual int OpenNextEntry(void** iter, Entry** next_entry, |
| 80 OldCompletionCallback* callback) OVERRIDE; | 84 OldCompletionCallback* callback) OVERRIDE; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 111 int32 current_size_; | 115 int32 current_size_; |
| 112 | 116 |
| 113 net::NetLog* net_log_; | 117 net::NetLog* net_log_; |
| 114 | 118 |
| 115 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); | 119 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); |
| 116 }; | 120 }; |
| 117 | 121 |
| 118 } // namespace disk_cache | 122 } // namespace disk_cache |
| 119 | 123 |
| 120 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ | 124 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ |
| OLD | NEW |