Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 CompletionCallback* callback); | 77 CompletionCallback* callback); |
| 78 virtual int DoomEntriesSince(const base::Time initial_time, | 78 virtual int DoomEntriesSince(const base::Time initial_time, |
| 79 CompletionCallback* callback); | 79 CompletionCallback* callback); |
| 80 virtual int OpenNextEntry(void** iter, Entry** next_entry, | 80 virtual int OpenNextEntry(void** iter, Entry** next_entry, |
| 81 CompletionCallback* callback); | 81 CompletionCallback* callback); |
| 82 virtual void EndEnumeration(void** iter); | 82 virtual void EndEnumeration(void** iter); |
| 83 virtual void GetStats(StatsItems* stats); | 83 virtual void GetStats(StatsItems* stats); |
| 84 | 84 |
| 85 // Performs the actual initialization and final cleanup on destruction. | 85 // Performs the actual initialization and final cleanup on destruction. |
| 86 int SyncInit(); | 86 int SyncInit(); |
| 87 void StartCleanup(); | |
|
gavinp
2010/07/19 22:20:31
Can we document the distinction between StartClean
| |
| 87 void CleanupCache(); | 88 void CleanupCache(); |
| 88 | 89 |
| 89 // Same bahavior as OpenNextEntry but walks the list from back to front. | 90 // Same bahavior as OpenNextEntry but walks the list from back to front. |
| 90 int OpenPrevEntry(void** iter, Entry** prev_entry, | 91 int OpenPrevEntry(void** iter, Entry** prev_entry, |
| 91 CompletionCallback* callback); | 92 CompletionCallback* callback); |
| 92 | 93 |
| 93 // Synchronous implementation of the asynchronous interface. | 94 // Synchronous implementation of the asynchronous interface. |
| 94 int SyncOpenEntry(const std::string& key, Entry** entry); | 95 int SyncOpenEntry(const std::string& key, Entry** entry); |
| 95 int SyncCreateEntry(const std::string& key, Entry** entry); | 96 int SyncCreateEntry(const std::string& key, Entry** entry); |
| 96 int SyncDoomEntry(const std::string& key); | 97 int SyncDoomEntry(const std::string& key); |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 340 | 341 |
| 341 DISALLOW_COPY_AND_ASSIGN(BackendImpl); | 342 DISALLOW_COPY_AND_ASSIGN(BackendImpl); |
| 342 }; | 343 }; |
| 343 | 344 |
| 344 // Returns the prefered max cache size given the available disk space. | 345 // Returns the prefered max cache size given the available disk space. |
| 345 int PreferedCacheSize(int64 available); | 346 int PreferedCacheSize(int64 available); |
| 346 | 347 |
| 347 } // namespace disk_cache | 348 } // namespace disk_cache |
| 348 | 349 |
| 349 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ | 350 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ |
| OLD | NEW |