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

Unified Diff: content/renderer/categorized_worker_pool.h

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: erase Closure* Created 3 years, 9 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 | « content/public/child/worker_thread.h ('k') | content/renderer/categorized_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/categorized_worker_pool.h
diff --git a/content/renderer/categorized_worker_pool.h b/content/renderer/categorized_worker_pool.h
index cd3be4672b1be110014ca39574f7122862c940de..ec65e4af8f92a0e572c49d8cfbd1d3c634a51b6b 100644
--- a/content/renderer/categorized_worker_pool.h
+++ b/content/renderer/categorized_worker_pool.h
@@ -36,7 +36,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner,
// Overridden from base::TaskRunner:
bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::Closure task,
base::TimeDelta delay) override;
bool RunsTasksOnCurrentThread() const override;
@@ -85,7 +85,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner,
// |task_graph_runner_|.
class ClosureTask : public cc::Task {
public:
- explicit ClosureTask(const base::Closure& closure);
+ explicit ClosureTask(base::Closure closure);
// Overridden from cc::Task:
void RunOnWorkerThread() override;
« no previous file with comments | « content/public/child/worker_thread.h ('k') | content/renderer/categorized_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698