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_BACKEND_IMPL_H_ | 7 #ifndef NET_DISK_CACHE_BACKEND_IMPL_H_ |
8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ | 8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 const base::Time end_time, | 270 const base::Time end_time, |
271 OldCompletionCallback* callback) OVERRIDE; | 271 OldCompletionCallback* callback) OVERRIDE; |
272 virtual int DoomEntriesBetween( | 272 virtual int DoomEntriesBetween( |
273 const base::Time initial_time, | 273 const base::Time initial_time, |
274 const base::Time end_time, | 274 const base::Time end_time, |
275 const net::CompletionCallback& callback) OVERRIDE; | 275 const net::CompletionCallback& callback) OVERRIDE; |
276 virtual int DoomEntriesSince(const base::Time initial_time, | 276 virtual int DoomEntriesSince(const base::Time initial_time, |
277 OldCompletionCallback* callback) OVERRIDE; | 277 OldCompletionCallback* callback) OVERRIDE; |
278 virtual int OpenNextEntry(void** iter, Entry** next_entry, | 278 virtual int OpenNextEntry(void** iter, Entry** next_entry, |
279 OldCompletionCallback* callback) OVERRIDE; | 279 OldCompletionCallback* callback) OVERRIDE; |
| 280 virtual int OpenNextEntry(void** iter, Entry** next_entry, |
| 281 const net::CompletionCallback& callback) OVERRIDE; |
280 virtual void EndEnumeration(void** iter) OVERRIDE; | 282 virtual void EndEnumeration(void** iter) OVERRIDE; |
281 virtual void GetStats(StatsItems* stats) OVERRIDE; | 283 virtual void GetStats(StatsItems* stats) OVERRIDE; |
282 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; | 284 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; |
283 | 285 |
284 private: | 286 private: |
285 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap; | 287 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap; |
286 | 288 |
287 // Creates a new backing file for the cache index. | 289 // Creates a new backing file for the cache index. |
288 bool CreateBackingStore(disk_cache::File* file); | 290 bool CreateBackingStore(disk_cache::File* file); |
289 bool InitBackingStore(bool* file_created); | 291 bool InitBackingStore(bool* file_created); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 397 |
396 DISALLOW_COPY_AND_ASSIGN(BackendImpl); | 398 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
397 }; | 399 }; |
398 | 400 |
399 // Returns the prefered max cache size given the available disk space. | 401 // Returns the prefered max cache size given the available disk space. |
400 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available); | 402 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available); |
401 | 403 |
402 } // namespace disk_cache | 404 } // namespace disk_cache |
403 | 405 |
404 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ | 406 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ |
OLD | NEW |