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

Unified Diff: ppapi/host/dispatch_host_message.h

Issue 1772763002: Replace base::Tuple in //ppapi with std::tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update #include 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
« no previous file with comments | « no previous file | ppapi/proxy/dispatch_reply_message.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/host/dispatch_host_message.h
diff --git a/ppapi/host/dispatch_host_message.h b/ppapi/host/dispatch_host_message.h
index a0b092e7c1b37c82936543120a243ba42d45f3d9..c00df223d109803aa1ddfd36b234abec232ec1d8 100644
--- a/ppapi/host/dispatch_host_message.h
+++ b/ppapi/host/dispatch_host_message.h
@@ -12,6 +12,8 @@
#include <stdint.h>
+#include <tuple>
+
#include "base/profiler/scoped_profile.h"
#include "ipc/ipc_message_macros.h"
#include "ppapi/c/pp_errors.h"
@@ -24,47 +26,47 @@ struct HostMessageContext;
template <class ObjT, class Method>
inline int32_t DispatchResourceCall(ObjT* obj, Method method,
HostMessageContext* context,
- base::Tuple<>& arg) {
+ std::tuple<>& arg) {
return (obj->*method)(context);
}
template <class ObjT, class Method, class A>
inline int32_t DispatchResourceCall(ObjT* obj, Method method,
HostMessageContext* context,
- base::Tuple<A>& arg) {
- return (obj->*method)(context, base::get<0>(arg));
+ std::tuple<A>& arg) {
+ return (obj->*method)(context, std::get<0>(arg));
}
template<class ObjT, class Method, class A, class B>
inline int32_t DispatchResourceCall(ObjT* obj, Method method,
HostMessageContext* context,
- base::Tuple<A, B>& arg) {
- return (obj->*method)(context, base::get<0>(arg), base::get<1>(arg));
+ std::tuple<A, B>& arg) {
+ return (obj->*method)(context, std::get<0>(arg), std::get<1>(arg));
}
template<class ObjT, class Method, class A, class B, class C>
inline int32_t DispatchResourceCall(ObjT* obj, Method method,
HostMessageContext* context,
- base::Tuple<A, B, C>& arg) {
- return (obj->*method)(context, base::get<0>(arg), base::get<1>(arg),
- base::get<2>(arg));
+ std::tuple<A, B, C>& arg) {
+ return (obj->*method)(context, std::get<0>(arg), std::get<1>(arg),
+ std::get<2>(arg));
}
template<class ObjT, class Method, class A, class B, class C, class D>
inline int32_t DispatchResourceCall(ObjT* obj, Method method,
HostMessageContext* context,
- base::Tuple<A, B, C, D>& arg) {
- return (obj->*method)(context, base::get<0>(arg), base::get<1>(arg),
- base::get<2>(arg), base::get<3>(arg));
+ std::tuple<A, B, C, D>& arg) {
+ return (obj->*method)(context, std::get<0>(arg), std::get<1>(arg),
+ std::get<2>(arg), std::get<3>(arg));
}
template<class ObjT, class Method, class A, class B, class C, class D, class E>
inline int32_t DispatchResourceCall(ObjT* obj, Method method,
HostMessageContext* context,
- base::Tuple<A, B, C, D, E>& arg) {
- return (obj->*method)(context, base::get<0>(arg), base::get<1>(arg),
- base::get<2>(arg), base::get<3>(arg),
- base::get<4>(arg));
+ std::tuple<A, B, C, D, E>& arg) {
+ return (obj->*method)(context, std::get<0>(arg), std::get<1>(arg),
+ std::get<2>(arg), std::get<3>(arg),
+ std::get<4>(arg));
}
// Note that this only works for message with 1 or more parameters. For
« no previous file with comments | « no previous file | ppapi/proxy/dispatch_reply_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698