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

Unified Diff: Source/platform/scheduler/Scheduler.h

Issue 705003002: Change the return type of WTF::bind() to |OwnPtr<Function>| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments from yhirano Created 6 years, 1 month 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 | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scheduler/Scheduler.h
diff --git a/Source/platform/scheduler/Scheduler.h b/Source/platform/scheduler/Scheduler.h
index 62b08a69f0f1098aa97ad97e13f2f57f9e48767a..4813b21a53b2dad14c4906ae506c1abda1a3518c 100644
--- a/Source/platform/scheduler/Scheduler.h
+++ b/Source/platform/scheduler/Scheduler.h
@@ -8,6 +8,7 @@
#include "platform/PlatformExport.h"
#include "wtf/Functional.h"
#include "wtf/Noncopyable.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
class TraceLocation;
@@ -27,7 +28,7 @@ public:
// For non-critical tasks which may be reordered relative to other task types and may be starved
// for an arbitrarily long time if no idle time is available.
- void postIdleTask(const TraceLocation&, const IdleTask&);
+ void postIdleTask(const TraceLocation&, PassOwnPtr<IdleTask>);
// Returns true if there is high priority work pending on the main thread
// and the caller should yield to let the scheduler service that work.
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698