diff options
Diffstat (limited to 'net/disk_cache/rankings.h')
-rw-r--r-- | net/disk_cache/rankings.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/disk_cache/rankings.h b/net/disk_cache/rankings.h index 4e94237..c9fc8d2 100644 --- a/net/disk_cache/rankings.h +++ b/net/disk_cache/rankings.h @@ -147,9 +147,14 @@ class Rankings { 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); |