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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 void DoomEntriesBetween(const base::Time initial_time, | 161 void DoomEntriesBetween(const base::Time initial_time, |
162 const base::Time end_time, | 162 const base::Time end_time, |
163 net::OldCompletionCallback* callback); | 163 net::OldCompletionCallback* callback); |
164 void DoomEntriesBetween(const base::Time initial_time, | 164 void DoomEntriesBetween(const base::Time initial_time, |
165 const base::Time end_time, | 165 const base::Time end_time, |
166 const net::CompletionCallback& callback); | 166 const net::CompletionCallback& callback); |
167 void DoomEntriesSince(const base::Time initial_time, | 167 void DoomEntriesSince(const base::Time initial_time, |
168 net::OldCompletionCallback* callback); | 168 net::OldCompletionCallback* callback); |
169 void OpenNextEntry(void** iter, Entry** next_entry, | 169 void OpenNextEntry(void** iter, Entry** next_entry, |
170 net::OldCompletionCallback* callback); | 170 net::OldCompletionCallback* callback); |
| 171 void OpenNextEntry(void** iter, Entry** next_entry, |
| 172 const net::CompletionCallback& callback); |
171 void OpenPrevEntry(void** iter, Entry** prev_entry, | 173 void OpenPrevEntry(void** iter, Entry** prev_entry, |
172 net::OldCompletionCallback* callback); | 174 net::OldCompletionCallback* callback); |
173 void EndEnumeration(void* iterator); | 175 void EndEnumeration(void* iterator); |
174 void OnExternalCacheHit(const std::string& key); | 176 void OnExternalCacheHit(const std::string& key); |
175 void CloseEntryImpl(EntryImpl* entry); | 177 void CloseEntryImpl(EntryImpl* entry); |
176 void DoomEntryImpl(EntryImpl* entry); | 178 void DoomEntryImpl(EntryImpl* entry); |
177 void FlushQueue(net::OldCompletionCallback* callback); | 179 void FlushQueue(net::OldCompletionCallback* callback); |
178 void RunTask(Task* task, net::OldCompletionCallback* callback); | 180 void RunTask(Task* task, net::OldCompletionCallback* callback); |
179 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, | 181 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, |
180 int buf_len, net::OldCompletionCallback* callback); | 182 int buf_len, net::OldCompletionCallback* callback); |
(...skipping 29 matching lines...) Expand all Loading... |
210 | 212 |
211 BackendImpl* backend_; | 213 BackendImpl* backend_; |
212 scoped_refptr<base::MessageLoopProxy> background_thread_; | 214 scoped_refptr<base::MessageLoopProxy> background_thread_; |
213 | 215 |
214 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); | 216 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); |
215 }; | 217 }; |
216 | 218 |
217 } // namespace disk_cache | 219 } // namespace disk_cache |
218 | 220 |
219 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ | 221 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
OLD | NEW |