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 #ifndef NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ | 5 #ifndef NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ | 6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 void DoomEntriesBetween(const base::Time initial_time, | 165 void DoomEntriesBetween(const base::Time initial_time, |
166 const base::Time end_time, | 166 const base::Time end_time, |
167 net::OldCompletionCallback* callback); | 167 net::OldCompletionCallback* callback); |
168 void DoomEntriesBetween(const base::Time initial_time, | 168 void DoomEntriesBetween(const base::Time initial_time, |
169 const base::Time end_time, | 169 const base::Time end_time, |
170 const net::CompletionCallback& callback); | 170 const net::CompletionCallback& callback); |
171 void DoomEntriesSince(const base::Time initial_time, | 171 void DoomEntriesSince(const base::Time initial_time, |
172 net::OldCompletionCallback* callback); | 172 net::OldCompletionCallback* callback); |
173 void OpenNextEntry(void** iter, Entry** next_entry, | 173 void OpenNextEntry(void** iter, Entry** next_entry, |
174 net::OldCompletionCallback* callback); | 174 net::OldCompletionCallback* callback); |
| 175 void OpenNextEntry(void** iter, Entry** next_entry, |
| 176 const net::CompletionCallback& callback); |
175 void OpenPrevEntry(void** iter, Entry** prev_entry, | 177 void OpenPrevEntry(void** iter, Entry** prev_entry, |
176 net::OldCompletionCallback* callback); | 178 net::OldCompletionCallback* callback); |
177 void EndEnumeration(void* iterator); | 179 void EndEnumeration(void* iterator); |
178 void OnExternalCacheHit(const std::string& key); | 180 void OnExternalCacheHit(const std::string& key); |
179 void CloseEntryImpl(EntryImpl* entry); | 181 void CloseEntryImpl(EntryImpl* entry); |
180 void DoomEntryImpl(EntryImpl* entry); | 182 void DoomEntryImpl(EntryImpl* entry); |
181 void FlushQueue(net::OldCompletionCallback* callback); | 183 void FlushQueue(net::OldCompletionCallback* callback); |
182 void RunTask(Task* task, net::OldCompletionCallback* callback); | 184 void RunTask(Task* task, net::OldCompletionCallback* callback); |
183 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, | 185 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, |
184 int buf_len, net::OldCompletionCallback* callback); | 186 int buf_len, net::OldCompletionCallback* callback); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 222 |
221 BackendImpl* backend_; | 223 BackendImpl* backend_; |
222 scoped_refptr<base::MessageLoopProxy> background_thread_; | 224 scoped_refptr<base::MessageLoopProxy> background_thread_; |
223 | 225 |
224 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); | 226 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); |
225 }; | 227 }; |
226 | 228 |
227 } // namespace disk_cache | 229 } // namespace disk_cache |
228 | 230 |
229 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ | 231 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
OLD | NEW |