Chromium Code Reviews| Index: net/disk_cache/simple/simple_index.cc |
| diff --git a/net/disk_cache/simple/simple_index.cc b/net/disk_cache/simple/simple_index.cc |
| index fd01abd89946aa2c455c50865b96adbae50c9a10..bea23a3b7366fd9525e4846ad4129168081ed51c 100644 |
| --- a/net/disk_cache/simple/simple_index.cc |
| +++ b/net/disk_cache/simple/simple_index.cc |
| @@ -239,6 +239,10 @@ int32 SimpleIndex::GetEntryCount() const { |
| return entries_set_.size(); |
| } |
| +uint64 SimpleIndex::GetCacheSize() const { |
| + return cache_size_; |
|
pasko
2015/10/09 15:52:03
DCHECK(initialized_) please
msramek
2015/10/13 09:45:06
Done.
|
| +} |
| + |
| void SimpleIndex::Insert(uint64 entry_hash) { |
| DCHECK(io_thread_checker_.CalledOnValidThread()); |
| // Upon insert we don't know yet the size of the entry. |