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

Unified Diff: content/child/worker_thread_registry.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/browser/startup_task_runner_unittest.cc ('k') | content/child/worker_thread_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/worker_thread_registry.h
diff --git a/content/child/worker_thread_registry.h b/content/child/worker_thread_registry.h
index 780cd5fdc789226b3bb1acef4754208445db8e2d..3e8f994da6733708b9d83fc6f45ffff5aa6d8f4b 100644
--- a/content/child/worker_thread_registry.h
+++ b/content/child/worker_thread_registry.h
@@ -7,7 +7,7 @@
#include <map>
-#include "base/callback_forward.h"
+#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
@@ -24,7 +24,7 @@ class CONTENT_EXPORT WorkerThreadRegistry {
public:
WorkerThreadRegistry();
- int PostTaskToAllThreads(const base::Closure& task);
+ int PostTaskToAllThreads(base::Closure task);
static WorkerThreadRegistry* Instance();
void DidStartCurrentWorkerThread();
@@ -39,7 +39,7 @@ class CONTENT_EXPORT WorkerThreadRegistry {
friend class WorkerThread;
friend class WorkerThreadRegistryTest;
- bool PostTask(int id, const base::Closure& task);
+ bool PostTask(int id, base::Closure task);
using IDToTaskRunnerMap = std::map<base::PlatformThreadId, base::TaskRunner*>;
« no previous file with comments | « content/browser/startup_task_runner_unittest.cc ('k') | content/child/worker_thread_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698