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

Unified Diff: net/disk_cache/simple/simple_backend_impl.cc

Issue 14022012: Code quality and standards in SimpleBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: braces Created 7 years, 8 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/simple/simple_backend_impl.cc
diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc
index 06176379a5b3d4bc0eebff201c12203d239d3611..c8d9edea9e794ca321706b9e80a4953d66e10611 100644
--- a/net/disk_cache/simple/simple_backend_impl.cc
+++ b/net/disk_cache/simple/simple_backend_impl.cc
@@ -41,7 +41,7 @@ SimpleBackendImpl::SimpleBackendImpl(
const FilePath& path,
int max_bytes,
net::CacheType type,
- const scoped_refptr<base::TaskRunner>& cache_thread,
+ base::TaskRunner* cache_thread,
net::NetLog* net_log)
: path_(path),
index_(new SimpleIndex(cache_thread,
@@ -78,18 +78,19 @@ int32 SimpleBackendImpl::GetEntryCount() const {
int SimpleBackendImpl::OpenEntry(const std::string& key,
Entry** entry,
const CompletionCallback& callback) {
- return SimpleEntryImpl::OpenEntry(index_, path_, key, entry, callback);
+ return SimpleEntryImpl::OpenEntry(index_.get(), path_, key, entry, callback);
}
int SimpleBackendImpl::CreateEntry(const std::string& key,
Entry** entry,
const CompletionCallback& callback) {
- return SimpleEntryImpl::CreateEntry(index_, path_, key, entry, callback);
+ return SimpleEntryImpl::CreateEntry(index_.get(), path_, key, entry,
+ callback);
}
int SimpleBackendImpl::DoomEntry(const std::string& key,
const net::CompletionCallback& callback) {
- return SimpleEntryImpl::DoomEntry(index_, path_, key, callback);
+ return SimpleEntryImpl::DoomEntry(index_.get(), path_, key, callback);
}
int SimpleBackendImpl::DoomAllEntries(const CompletionCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698