| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 OldCompletionCallback* callback) OVERRIDE; | 262 OldCompletionCallback* callback) OVERRIDE; |
| 263 virtual int OpenEntry(const std::string& key, Entry** entry, | 263 virtual int OpenEntry(const std::string& key, Entry** entry, |
| 264 const net::CompletionCallback& callback) OVERRIDE; | 264 const net::CompletionCallback& callback) OVERRIDE; |
| 265 virtual int CreateEntry(const std::string& key, Entry** entry, | 265 virtual int CreateEntry(const std::string& key, Entry** entry, |
| 266 OldCompletionCallback* callback) OVERRIDE; | 266 OldCompletionCallback* callback) OVERRIDE; |
| 267 virtual int CreateEntry(const std::string& key, Entry** entry, | 267 virtual int CreateEntry(const std::string& key, Entry** entry, |
| 268 const net::CompletionCallback& callback) OVERRIDE; | 268 const net::CompletionCallback& callback) OVERRIDE; |
| 269 virtual int DoomEntry(const std::string& key, | 269 virtual int DoomEntry(const std::string& key, |
| 270 OldCompletionCallback* callback) OVERRIDE; | 270 OldCompletionCallback* callback) OVERRIDE; |
| 271 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE; | 271 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE; |
| 272 virtual int DoomAllEntries(const net::CompletionCallback& callback) OVERRIDE; |
| 272 virtual int DoomEntriesBetween(const base::Time initial_time, | 273 virtual int DoomEntriesBetween(const base::Time initial_time, |
| 273 const base::Time end_time, | 274 const base::Time end_time, |
| 274 OldCompletionCallback* callback) OVERRIDE; | 275 OldCompletionCallback* callback) OVERRIDE; |
| 276 virtual int DoomEntriesBetween( |
| 277 const base::Time initial_time, |
| 278 const base::Time end_time, |
| 279 const net::CompletionCallback& callback) OVERRIDE; |
| 275 virtual int DoomEntriesSince(const base::Time initial_time, | 280 virtual int DoomEntriesSince(const base::Time initial_time, |
| 276 OldCompletionCallback* callback) OVERRIDE; | 281 OldCompletionCallback* callback) OVERRIDE; |
| 277 virtual int OpenNextEntry(void** iter, Entry** next_entry, | 282 virtual int OpenNextEntry(void** iter, Entry** next_entry, |
| 278 OldCompletionCallback* callback) OVERRIDE; | 283 OldCompletionCallback* callback) OVERRIDE; |
| 279 virtual void EndEnumeration(void** iter) OVERRIDE; | 284 virtual void EndEnumeration(void** iter) OVERRIDE; |
| 280 virtual void GetStats(StatsItems* stats) OVERRIDE; | 285 virtual void GetStats(StatsItems* stats) OVERRIDE; |
| 281 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; | 286 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; |
| 282 | 287 |
| 283 private: | 288 private: |
| 284 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap; | 289 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 399 |
| 395 DISALLOW_COPY_AND_ASSIGN(BackendImpl); | 400 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
| 396 }; | 401 }; |
| 397 | 402 |
| 398 // Returns the prefered max cache size given the available disk space. | 403 // Returns the prefered max cache size given the available disk space. |
| 399 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available); | 404 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available); |
| 400 | 405 |
| 401 } // namespace disk_cache | 406 } // namespace disk_cache |
| 402 | 407 |
| 403 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ | 408 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ |
| OLD | NEW |