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

Unified Diff: Source/wtf/MainThread.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/wtf/FunctionalTest.cpp ('k') | Source/wtf/MainThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/MainThread.h
diff --git a/Source/wtf/MainThread.h b/Source/wtf/MainThread.h
index dbcd538815607c041473c1d0355bd3abb2369328..4c2c91dc7431624bc1c5610630e0a1307716b873 100644
--- a/Source/wtf/MainThread.h
+++ b/Source/wtf/MainThread.h
@@ -30,9 +30,9 @@
#ifndef MainThread_h
#define MainThread_h
-#include <stdint.h>
-
+#include "wtf/Forward.h"
#include "wtf/WTFExport.h"
+#include <stdint.h>
namespace WTF {
@@ -43,8 +43,7 @@ WTF_EXPORT void initializeMainThread(void (*)(MainThreadFunction, void*));
WTF_EXPORT void callOnMainThread(MainThreadFunction*, void* context);
-template<typename> class Function;
-WTF_EXPORT void callOnMainThread(const Function<void ()>&);
+WTF_EXPORT void callOnMainThread(PassOwnPtr<Function<void()>>);
WTF_EXPORT bool isMainThread();
« no previous file with comments | « Source/wtf/FunctionalTest.cpp ('k') | Source/wtf/MainThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698