| Index: net/http/mock_http_cache.cc
|
| diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc
|
| index 47125a30cc53f4bdf2969ae35e1c5b607c2706c4..cb39341aad4a8d37aec0eab70e9e6d12aa28607e 100644
|
| --- a/net/http/mock_http_cache.cc
|
| +++ b/net/http/mock_http_cache.cc
|
| @@ -68,6 +68,7 @@ struct MockDiskEntry::CallbackInfo {
|
|
|
| MockDiskEntry::MockDiskEntry(const std::string& key)
|
| : key_(key),
|
| + memory_entry_data_(0),
|
| doomed_(false),
|
| sparse_(false),
|
| fail_requests_(false),
|
| @@ -521,6 +522,19 @@ size_t MockDiskCache::DumpMemoryStats(
|
| return 0u;
|
| }
|
|
|
| +uint8_t MockDiskCache::GetMemoryEntryData(const std::string& key) {
|
| + EntryMap::iterator it = entries_.find(key);
|
| + if (it != entries_.end())
|
| + return it->second->memory_entry_data();
|
| + return 0;
|
| +}
|
| +
|
| +void MockDiskCache::SetMemoryEntryData(const std::string& key, uint8_t data) {
|
| + EntryMap::iterator it = entries_.find(key);
|
| + if (it != entries_.end())
|
| + it->second->set_memory_entry_data(data);
|
| +}
|
| +
|
| void MockDiskCache::ReleaseAll() {
|
| EntryMap::iterator it = entries_.begin();
|
| for (; it != entries_.end(); ++it)
|
|
|