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 |