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

Unified Diff: net/disk_cache/disk_cache.cc

Issue 2922973003: RFC: use some in-memory state in SimpleCache to quickly cache-miss some CantConditionalize cases
Patch Set: - Implement support for oracle bytes in MockHttpCache, so the code actually gets exercised in tests… Created 3 years, 6 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/disk_cache/disk_cache.cc
diff --git a/net/disk_cache/disk_cache.cc b/net/disk_cache/disk_cache.cc
index 81676ebd420430ce5d405cb2c27884f7f83e9039..0256b25c570beb3c1ef15cf5d455c7ad4e86c307 100644
--- a/net/disk_cache/disk_cache.cc
+++ b/net/disk_cache/disk_cache.cc
@@ -181,10 +181,19 @@ int CreateCacheBackend(
return creator->Run();
}
+int Backend::OpenEntryWithOracleByte(const std::string& key,
+ Entry** entry,
+ const OracleCallback& oracle,
+ const CompletionCallback& callback) {
+ return OpenEntry(key, entry, callback);
+}
+
int Backend::CalculateSizeOfEntriesBetween(base::Time initial_time,
base::Time end_time,
const CompletionCallback& callback) {
return net::ERR_NOT_IMPLEMENTED;
}
+void Entry::SetOracleByte(uint8_t) {}
+
} // namespace disk_cache

Powered by Google App Engine
This is Rietveld 408576698