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

Unified Diff: base/bind_internal.h

Issue 1698223002: Remove UnwrapTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« base/bind_helpers.h ('K') | « base/bind_helpers.h ('k') | base/tuple.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 90889d54a965209744d5d91698e9e7bb9a6e11dc..186222ac8c0c6cd3d7b78d3ef6bcbb7d76490ae0 100644
--- a/base/bind_internal.h
+++ b/base/bind_internal.h
@@ -331,19 +331,16 @@ struct InvokeHelper<true, ReturnType, Runnable> {
// Invoker<>
//
// See description at the top of the file.
-template <typename BoundIndices,
- typename StorageType, typename Unwrappers,
+template <typename BoundIndices, typename StorageType,
typename InvokeHelperType, typename UnboundForwardRunType>
struct Invoker;
template <size_t... bound_indices,
typename StorageType,
- typename... Unwrappers,
typename InvokeHelperType,
typename R,
typename... UnboundForwardArgs>
-struct Invoker<IndexSequence<bound_indices...>,
- StorageType, TypeList<Unwrappers...>,
+struct Invoker<IndexSequence<bound_indices...>, StorageType,
InvokeHelperType, R(UnboundForwardArgs...)> {
static R Run(BindStateBase* base,
UnboundForwardArgs... unbound_args) {
@@ -353,7 +350,7 @@ struct Invoker<IndexSequence<bound_indices...>,
// InvokeHelper<>::MakeItSo() call below.
return InvokeHelperType::MakeItSo(
storage->runnable_,
- Unwrappers::Unwrap(get<bound_indices>(storage->bound_args_))...,
+ Unwrap(get<bound_indices>(storage->bound_args_))...,
CallbackForward(unbound_args)...);
}
};
@@ -389,7 +386,6 @@ struct BindState<Runnable, R(Args...), BoundArgs...> final
IsWeakMethod<HasIsMethodTag<Runnable>::value, BoundArgs...>;
using BoundIndices = MakeIndexSequence<sizeof...(BoundArgs)>;
- using Unwrappers = TypeList<UnwrapTraits<BoundArgs>...>;
using UnboundForwardArgs = DropTypeListItem<
sizeof...(BoundArgs),
TypeList<typename CallbackParamTraits<Args>::ForwardType...>>;
@@ -399,7 +395,7 @@ struct BindState<Runnable, R(Args...), BoundArgs...> final
using UnboundArgs = DropTypeListItem<sizeof...(BoundArgs), TypeList<Args...>>;
public:
- using InvokerType = Invoker<BoundIndices, StorageType, Unwrappers,
+ using InvokerType = Invoker<BoundIndices, StorageType,
InvokeHelperType, UnboundForwardRunType>;
using UnboundRunType = MakeFunctionType<R, UnboundArgs>;
« base/bind_helpers.h ('K') | « base/bind_helpers.h ('k') | base/tuple.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698