Index: net/http/mock_http_cache.cc |
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc |
index a91b2c1aa83107c737b67aa40ab064b1ef44f1f3..5c27eb6d5e8bc5611d36e16c05b7c16fb128a38f 100644 |
--- a/net/http/mock_http_cache.cc |
+++ b/net/http/mock_http_cache.cc |
@@ -457,12 +457,16 @@ int MockDiskCache::DoomEntriesSince(const base::Time initial_time, |
return net::ERR_NOT_IMPLEMENTED; |
} |
-int MockDiskCache::OpenNextEntry(void** iter, disk_cache::Entry** next_entry, |
- const net::CompletionCallback& callback) { |
- return net::ERR_NOT_IMPLEMENTED; |
-} |
- |
-void MockDiskCache::EndEnumeration(void** iter) { |
+scoped_ptr<disk_cache::Backend::Iterator> MockDiskCache::CreateIterator() { |
+ class NotImplementedIterator : public Iterator { |
+ public: |
+ virtual int OpenNextEntry( |
+ disk_cache::Entry** next_entry, |
+ const net::CompletionCallback& callback) OVERRIDE { |
+ return net::ERR_NOT_IMPLEMENTED; |
+ } |
+ }; |
+ return scoped_ptr<Iterator>(new NotImplementedIterator()); |
} |
void MockDiskCache::GetStats( |