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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 base::MessageLoopProxy* background_thread); | 149 base::MessageLoopProxy* background_thread); |
150 virtual ~InFlightBackendIO(); | 150 virtual ~InFlightBackendIO(); |
151 | 151 |
152 // The operations we proxy: | 152 // The operations we proxy: |
153 void Init(net::OldCompletionCallback* callback); | 153 void Init(net::OldCompletionCallback* callback); |
154 void OpenEntry(const std::string& key, Entry** entry, | 154 void OpenEntry(const std::string& key, Entry** entry, |
155 net::OldCompletionCallback* callback); | 155 net::OldCompletionCallback* callback); |
156 void CreateEntry(const std::string& key, Entry** entry, | 156 void CreateEntry(const std::string& key, Entry** entry, |
157 net::OldCompletionCallback* callback); | 157 net::OldCompletionCallback* callback); |
158 void DoomEntry(const std::string& key, net::OldCompletionCallback* callback); | 158 void DoomEntry(const std::string& key, net::OldCompletionCallback* callback); |
159 void DoomAllEntries(net::OldCompletionCallback* callback); | |
160 void DoomAllEntries(const net::CompletionCallback& callback); | 159 void DoomAllEntries(const net::CompletionCallback& callback); |
161 void DoomEntriesBetween(const base::Time initial_time, | 160 void DoomEntriesBetween(const base::Time initial_time, |
162 const base::Time end_time, | 161 const base::Time end_time, |
163 net::OldCompletionCallback* callback); | |
164 void DoomEntriesBetween(const base::Time initial_time, | |
165 const base::Time end_time, | |
166 const net::CompletionCallback& callback); | 162 const net::CompletionCallback& callback); |
167 void DoomEntriesSince(const base::Time initial_time, | 163 void DoomEntriesSince(const base::Time initial_time, |
168 net::OldCompletionCallback* callback); | 164 net::OldCompletionCallback* callback); |
169 void OpenNextEntry(void** iter, Entry** next_entry, | 165 void OpenNextEntry(void** iter, Entry** next_entry, |
170 net::OldCompletionCallback* callback); | |
171 void OpenNextEntry(void** iter, Entry** next_entry, | |
172 const net::CompletionCallback& callback); | 166 const net::CompletionCallback& callback); |
173 void OpenPrevEntry(void** iter, Entry** prev_entry, | 167 void OpenPrevEntry(void** iter, Entry** prev_entry, |
174 net::OldCompletionCallback* callback); | 168 net::OldCompletionCallback* callback); |
175 void EndEnumeration(void* iterator); | 169 void EndEnumeration(void* iterator); |
176 void OnExternalCacheHit(const std::string& key); | 170 void OnExternalCacheHit(const std::string& key); |
177 void CloseEntryImpl(EntryImpl* entry); | 171 void CloseEntryImpl(EntryImpl* entry); |
178 void DoomEntryImpl(EntryImpl* entry); | 172 void DoomEntryImpl(EntryImpl* entry); |
179 void FlushQueue(net::OldCompletionCallback* callback); | 173 void FlushQueue(net::OldCompletionCallback* callback); |
180 void RunTask(Task* task, net::OldCompletionCallback* callback); | 174 void RunTask(Task* task, net::OldCompletionCallback* callback); |
181 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, | 175 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, |
(...skipping 30 matching lines...) Expand all Loading... |
212 | 206 |
213 BackendImpl* backend_; | 207 BackendImpl* backend_; |
214 scoped_refptr<base::MessageLoopProxy> background_thread_; | 208 scoped_refptr<base::MessageLoopProxy> background_thread_; |
215 | 209 |
216 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); | 210 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); |
217 }; | 211 }; |
218 | 212 |
219 } // namespace disk_cache | 213 } // namespace disk_cache |
220 | 214 |
221 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ | 215 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
OLD | NEW |