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

Unified Diff: net/disk_cache/simple/simple_synchronous_entry.h

Issue 14022012: Code quality and standards in SimpleBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remediate 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_synchronous_entry.h
diff --git a/net/disk_cache/simple/simple_synchronous_entry.h b/net/disk_cache/simple/simple_synchronous_entry.h
index f91262cb6a7683c34010e05c461b597ff1522347..5cdf449e439054c3a71011aa7fdc5b37641ba431 100644
--- a/net/disk_cache/simple/simple_synchronous_entry.h
+++ b/net/disk_cache/simple/simple_synchronous_entry.h
@@ -45,13 +45,13 @@ class SimpleSynchronousEntry {
static void OpenEntry(
const base::FilePath& path,
const std::string& key,
- const scoped_refptr<base::TaskRunner>& callback_runner,
+ base::SingleThreadTaskRunner* callback_runner,
const SynchronousCreationCallback& callback);
static void CreateEntry(
const base::FilePath& path,
const std::string& key,
- const scoped_refptr<base::TaskRunner>& callback_runner,
+ base::SingleThreadTaskRunner* callback_runner,
const SynchronousCreationCallback& callback);
// Deletes an entry without first Opening it. Does not check if there is
@@ -60,7 +60,7 @@ class SimpleSynchronousEntry {
// run by |callback_runner|.
static void DoomEntry(const base::FilePath& path,
const std::string& key,
- const scoped_refptr<base::TaskRunner>& callback_runner,
+ base::SingleThreadTaskRunner* callback_runner,
const net::CompletionCallback& callback);
// N.B. Close(), ReadData() and WriteData() may block on IO.
@@ -87,7 +87,7 @@ class SimpleSynchronousEntry {
private:
SimpleSynchronousEntry(
- const scoped_refptr<base::TaskRunner>& callback_runner,
+ base::SingleThreadTaskRunner* callback_runner,
const base::FilePath& path,
const std::string& key);
@@ -106,7 +106,7 @@ class SimpleSynchronousEntry {
void Doom();
- scoped_refptr<base::TaskRunner> callback_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> callback_runner_;
const base::FilePath path_;
const std::string key_;

Powered by Google App Engine
This is Rietveld 408576698