Index: net/disk_cache/rankings.h |
=================================================================== |
--- net/disk_cache/rankings.h (revision 21923) |
+++ net/disk_cache/rankings.h (working copy) |
@@ -147,9 +147,14 @@ |
void WriteHead(List list); |
void WriteTail(List list); |
- // Gets the rankings information for a given rankings node. |
+ // Gets the rankings information for a given rankings node. We may end up |
+ // sharing the actual memory with a loaded entry, but we are not taking a |
+ // reference to that entry, so |rankings| must be short lived. |
bool GetRanking(CacheRankingsBlock* rankings); |
+ // Makes |rankings| suitable to live a long life. |
+ void ConvertToLongLived(CacheRankingsBlock* rankings); |
+ |
// Finishes a list modification after a crash. |
void CompleteTransaction(); |
void FinishInsert(CacheRankingsBlock* rankings); |