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

Unified Diff: remoting/client/plugin/pepper_main_thread_task_runner.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 | « remoting/base/auto_thread_task_runner.cc ('k') | remoting/client/plugin/pepper_main_thread_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_main_thread_task_runner.h
diff --git a/remoting/client/plugin/pepper_main_thread_task_runner.h b/remoting/client/plugin/pepper_main_thread_task_runner.h
index 64a71b8cfbdcf1399aba2d268e1aa0d8adb61119..320d8f53b8ef2125d3f92dde40a86838961df25f 100644
--- a/remoting/client/plugin/pepper_main_thread_task_runner.h
+++ b/remoting/client/plugin/pepper_main_thread_task_runner.h
@@ -7,7 +7,7 @@
#include <stdint.h>
-#include "base/callback_forward.h"
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -27,10 +27,10 @@ class PepperMainThreadTaskRunner : public base::SingleThreadTaskRunner {
// base::SingleThreadTaskRunner interface.
bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::Closure task,
base::TimeDelta delay) override;
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::Closure task,
base::TimeDelta delay) override;
bool RunsTasksOnCurrentThread() const override;
@@ -40,7 +40,7 @@ class PepperMainThreadTaskRunner : public base::SingleThreadTaskRunner {
private:
// Helper that allows a base::Closure to be used as a pp::CompletionCallback,
// by ignoring the completion result.
- void RunTask(const base::Closure& task);
+ void RunTask(base::Closure task);
pp::Core* core_;
« no previous file with comments | « remoting/base/auto_thread_task_runner.cc ('k') | remoting/client/plugin/pepper_main_thread_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698