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

Unified Diff: net/http/mock_http_cache.cc

Issue 585833002: Revert of Remove void** from disk_cache interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/http/mock_http_cache.h ('k') | net/tools/dump_cache/simple_cache_dumper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/mock_http_cache.cc
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc
index cbae9b80b9335487fb6cebe72a0a3e92a26810c4..a91b2c1aa83107c737b67aa40ab064b1ef44f1f3 100644
--- a/net/http/mock_http_cache.cc
+++ b/net/http/mock_http_cache.cc
@@ -457,16 +457,12 @@
return net::ERR_NOT_IMPLEMENTED;
}
-class MockDiskCache::NotImplementedIterator : public Iterator {
- public:
- virtual int OpenNextEntry(disk_cache::Entry** next_entry,
- const net::CompletionCallback& callback) OVERRIDE {
- return net::ERR_NOT_IMPLEMENTED;
- }
-};
-
-scoped_ptr<disk_cache::Backend::Iterator> MockDiskCache::CreateIterator() {
- return scoped_ptr<Iterator>(new NotImplementedIterator());
+int MockDiskCache::OpenNextEntry(void** iter, disk_cache::Entry** next_entry,
+ const net::CompletionCallback& callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+}
+
+void MockDiskCache::EndEnumeration(void** iter) {
}
void MockDiskCache::GetStats(
« no previous file with comments | « net/http/mock_http_cache.h ('k') | net/tools/dump_cache/simple_cache_dumper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698