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

Unified Diff: third_party/WebKit/Source/platform/WebTaskRunner.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
Index: third_party/WebKit/Source/platform/WebTaskRunner.h
diff --git a/third_party/WebKit/Source/platform/WebTaskRunner.h b/third_party/WebKit/Source/platform/WebTaskRunner.h
index 2bc0f52176bfc3d66c88ed0fea83a9df0c2c72ab..1dda2491edca4f911c72625a362209809d3ed1da 100644
--- a/third_party/WebKit/Source/platform/WebTaskRunner.h
+++ b/third_party/WebKit/Source/platform/WebTaskRunner.h
@@ -5,14 +5,14 @@
#ifndef WebTaskRunner_h
#define WebTaskRunner_h
-#include "base/callback_forward.h"
+#include <memory>
+#include "base/callback.h"
#include "public/platform/WebCommon.h"
#include "public/platform/WebTraceLocation.h"
#include "wtf/Compiler.h"
#include "wtf/Functional.h"
#include "wtf/RefCounted.h"
#include "wtf/WeakPtr.h"
-#include <memory>
namespace base {
class SingleThreadTaskRunner;
@@ -62,7 +62,7 @@ class BLINK_PLATFORM_EXPORT WebTaskRunner
// Schedule a task to be run after |delayMs| on the the associated WebThread.
// Can be called from any thread.
virtual void postDelayedTask(const WebTraceLocation&,
- const base::Closure&,
+ base::Closure,
double delayMs) = 0;
// Returns true if the current thread is a thread on which a task may be run.

Powered by Google App Engine
This is Rietveld 408576698