Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1986)

Unified Diff: net/http/mock_http_cache.h

Issue 1304363013: Add a size estimation mechanism to StoragePartitionHttpCacheDataRemover. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed some spots again. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/mock_http_cache.h
diff --git a/net/http/mock_http_cache.h b/net/http/mock_http_cache.h
index 632bb3e63c16996290e5ed945c6d7f7909eea5c0..2c1aa57811cb47307f221cc1c9c57e8eb0c26565 100644
--- a/net/http/mock_http_cache.h
+++ b/net/http/mock_http_cache.h
@@ -34,6 +34,7 @@ class MockDiskEntry : public disk_cache::Entry,
base::Time GetLastUsed() const override;
base::Time GetLastModified() const override;
int32 GetDataSize(int index) const override;
+ int GetEntrySize() const override;
int ReadData(int index,
int offset,
IOBuffer* buf,
@@ -127,6 +128,10 @@ class MockDiskCache : public disk_cache::Backend {
const CompletionCallback& callback) override;
int DoomEntriesSince(base::Time initial_time,
const CompletionCallback& callback) override;
+ int CalculateSizeOfEntriesBetween(
+ base::Time initial_time,
+ base::Time end_time,
+ const CompletionCallback& callback) override;
scoped_ptr<Iterator> CreateIterator() override;
void GetStats(base::StringPairs* stats) override;
void OnExternalCacheHit(const std::string& key) override;

Powered by Google App Engine
This is Rietveld 408576698