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

Unified Diff: content/browser/dom_storage/dom_storage_task_runner.h

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 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
Index: content/browser/dom_storage/dom_storage_task_runner.h
diff --git a/content/browser/dom_storage/dom_storage_task_runner.h b/content/browser/dom_storage/dom_storage_task_runner.h
index 5e21bc8aa55b86d77f94737747dddb95bc69b6d6..ae17c4e810a3de25c0d032cb23f1c2fcac64a767 100644
--- a/content/browser/dom_storage/dom_storage_task_runner.h
+++ b/content/browser/dom_storage/dom_storage_task_runner.h
@@ -38,14 +38,14 @@ class CONTENT_EXPORT DOMStorageTaskRunner
// The PostTask() and PostDelayedTask() methods defined by TaskRunner
// post shutdown-blocking tasks on the primary sequence.
bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) override = 0;
// Posts a shutdown blocking task to |sequence_id|.
virtual bool PostShutdownBlockingTask(
const tracked_objects::Location& from_here,
SequenceID sequence_id,
- const base::Closure& task) = 0;
+ base::OnceClosure task) = 0;
// The TaskRunner override returns true if the current thread is running
// on the primary sequence.
@@ -80,12 +80,12 @@ class CONTENT_EXPORT DOMStorageWorkerPoolTaskRunner :
base::SingleThreadTaskRunner* delayed_task_task_runner);
bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool PostShutdownBlockingTask(const tracked_objects::Location& from_here,
SequenceID sequence_id,
- const base::Closure& task) override;
+ base::OnceClosure task) override;
bool IsRunningOnSequence(SequenceID sequence_id) const override;
@@ -116,12 +116,12 @@ class CONTENT_EXPORT MockDOMStorageTaskRunner :
explicit MockDOMStorageTaskRunner(base::SingleThreadTaskRunner* task_runner);
bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool PostShutdownBlockingTask(const tracked_objects::Location& from_here,
SequenceID sequence_id,
- const base::Closure& task) override;
+ base::OnceClosure task) override;
bool IsRunningOnSequence(SequenceID sequence_id) const override;
« no previous file with comments | « content/browser/compositor/reflector_impl_unittest.cc ('k') | content/browser/dom_storage/dom_storage_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698