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

Unified Diff: base/bind_internal.h

Issue 2317563002: Move CallbackBase::polymorphic_invoke_ into BindStateBase (Closed)
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « base/bind.h ('k') | base/callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind_internal.h
diff --git a/base/bind_internal.h b/base/bind_internal.h
index 83e000dacdb7b197ecfa26b149ab949e07a295fb..0c7c8abda227de1cb2b29c2ab211106c20a5a8c9 100644
--- a/base/bind_internal.h
+++ b/base/bind_internal.h
@@ -379,8 +379,10 @@ IsNull(const Functor&) {
template <typename Functor, typename... BoundArgs>
struct BindState final : BindStateBase {
template <typename ForwardFunctor, typename... ForwardBoundArgs>
- explicit BindState(ForwardFunctor&& functor, ForwardBoundArgs&&... bound_args)
- : BindStateBase(&Destroy),
+ explicit BindState(BindStateBase::InvokeFuncStorage invoke_func,
+ ForwardFunctor&& functor,
+ ForwardBoundArgs&&... bound_args)
+ : BindStateBase(invoke_func, &Destroy),
functor_(std::forward<ForwardFunctor>(functor)),
bound_args_(std::forward<ForwardBoundArgs>(bound_args)...) {
DCHECK(!IsNull(functor_));
« no previous file with comments | « base/bind.h ('k') | base/callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698