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

Unified Diff: third_party/WebKit/Source/platform/threading/BindForMojo.h

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/threading/BindForMojo.h
diff --git a/third_party/WebKit/Source/platform/threading/BindForMojo.h b/third_party/WebKit/Source/platform/threading/BindForMojo.h
index 606c11b207fc8c2c86ff76cba68da35f0eb08cfd..2dcb511c2f9bd9141b58ee8ca527da3c11aaaf3d 100644
--- a/third_party/WebKit/Source/platform/threading/BindForMojo.h
+++ b/third_party/WebKit/Source/platform/threading/BindForMojo.h
@@ -24,6 +24,13 @@ sameThreadBindForMojo(ReturnType (Class::*method)(Args...), Class* instance)
return base::Bind(method, base::Unretained(instance));
}
+template <typename Class, typename ReturnType, typename BoundArgs, typename... Args>
+mojo::Callback<ReturnType(Args...)>
+sameThreadBindForMojoWithBoundArgs(ReturnType (Class::*method)(BoundArgs*, Args...), Class* instance, BoundArgs* bound)
+{
+ return base::Bind(method, base::Unretained(instance), base::Unretained(bound));
+}
+
} // namespace blink
#endif // BindForMojo_h

Powered by Google App Engine
This is Rietveld 408576698