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

Unified Diff: net/url_request/view_cache_helper.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/url_request/view_cache_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/view_cache_helper.cc
diff --git a/net/url_request/view_cache_helper.cc b/net/url_request/view_cache_helper.cc
index 36d3ae5ce0d89d26b8a422b367c2da11900bb232..346c7cdb50c6c60fd46f8bef5f9a37ef57af6f4b 100644
--- a/net/url_request/view_cache_helper.cc
+++ b/net/url_request/view_cache_helper.cc
@@ -45,6 +45,7 @@
: context_(NULL),
disk_cache_(NULL),
entry_(NULL),
+ iter_(NULL),
buf_len_(0),
index_(0),
data_(NULL),
@@ -241,11 +242,9 @@
int ViewCacheHelper::DoOpenNextEntry() {
next_state_ = STATE_OPEN_NEXT_ENTRY_COMPLETE;
- if (!iter_)
- iter_ = disk_cache_->CreateIterator();
- return
- iter_->OpenNextEntry(&entry_, base::Bind(&ViewCacheHelper::OnIOComplete,
- base::Unretained(this)));
+ return disk_cache_->OpenNextEntry(
+ &iter_, &entry_,
+ base::Bind(&ViewCacheHelper::OnIOComplete, base::Unretained(this)));
}
int ViewCacheHelper::DoOpenNextEntryComplete(int result) {
« no previous file with comments | « net/url_request/view_cache_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698