| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 Addr* block_address); | 65 Addr* block_address); |
| 66 | 66 |
| 67 // Deletes a given storage block. deep set to true can be used to zero-fill | 67 // Deletes a given storage block. deep set to true can be used to zero-fill |
| 68 // the related storage in addition of releasing the related block. | 68 // the related storage in addition of releasing the related block. |
| 69 void DeleteBlock(Addr block_address, bool deep); | 69 void DeleteBlock(Addr block_address, bool deep); |
| 70 | 70 |
| 71 // Retrieves a pointer to the lru-related data. | 71 // Retrieves a pointer to the lru-related data. |
| 72 LruData* GetLruData(); | 72 LruData* GetLruData(); |
| 73 | 73 |
| 74 // Updates the ranking information for an entry. | 74 // Updates the ranking information for an entry. |
| 75 void UpdateRank(CacheRankingsBlock* node, bool modified); | 75 void UpdateRank(EntryImpl* entry, bool modified); |
| 76 | 76 |
| 77 // A node was recovered from a crash, it may not be on the index, so this | 77 // A node was recovered from a crash, it may not be on the index, so this |
| 78 // method checks it and takes the appropriate action. | 78 // method checks it and takes the appropriate action. |
| 79 void RecoveredEntry(CacheRankingsBlock* rankings); | 79 void RecoveredEntry(CacheRankingsBlock* rankings); |
| 80 | 80 |
| 81 // Permanently deletes an entry. | 81 // Permanently deletes an entry. |
| 82 void InternalDoomEntry(EntryImpl* entry); | 82 void InternalDoomEntry(EntryImpl* entry); |
| 83 | 83 |
| 84 // This method must be called whenever an entry is released for the last time. | 84 // This method must be called whenever an entry is released for the last time. |
| 85 void CacheEntryDestroyed(); | 85 void CacheEntryDestroyed(); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 TraceObject trace_object_; // Inits and destroys internal tracing. | 200 TraceObject trace_object_; // Inits and destroys internal tracing. |
| 201 ScopedRunnableMethodFactory<BackendImpl> factory_; | 201 ScopedRunnableMethodFactory<BackendImpl> factory_; |
| 202 | 202 |
| 203 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); | 203 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace disk_cache | 206 } // namespace disk_cache |
| 207 | 207 |
| 208 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__ | 208 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__ |
| 209 | 209 |
| OLD | NEW |