Chromium Code Reviews| 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..26dc39348c50ef70083e01bf4b305315a716e77d 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 FINAL : public Iterator { |
|
rvargas (doing something else)
2014/09/18 02:32:12
declare outside the method
gavinp
2014/09/18 18:13:04
Done.
|
| + 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( |