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

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: Rebase 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
Index: Source/wtf/MainThread.h
diff --git a/Source/wtf/MainThread.h b/Source/wtf/MainThread.h
index dbcd538815607c041473c1d0355bd3abb2369328..3871cdf3bddaa09b747efca51179a5113f88b998 100644
--- a/Source/wtf/MainThread.h
+++ b/Source/wtf/MainThread.h
@@ -43,8 +43,9 @@ WTF_EXPORT void initializeMainThread(void (*)(MainThreadFunction, void*));
WTF_EXPORT void callOnMainThread(MainThreadFunction*, void* context);
+template<typename> class PassOwnPtr;
yhirano 2014/11/07 06:05:28 include wtf/Forward.h instead?
hiroshige 2014/11/07 07:16:59 Done.
template<typename> class Function;
-WTF_EXPORT void callOnMainThread(const Function<void ()>&);
+WTF_EXPORT void callOnMainThread(PassOwnPtr<Function<void()>>);
WTF_EXPORT bool isMainThread();

Powered by Google App Engine
This is Rietveld 408576698