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

Unified Diff: ppapi/proxy/dispatch_reply_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 | « ppapi/host/dispatch_host_message.h ('k') | ppapi/proxy/nacl_message_scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/dispatch_reply_message.h
diff --git a/ppapi/proxy/dispatch_reply_message.h b/ppapi/proxy/dispatch_reply_message.h
index 2d664174341c7eff6ebf4b4d53515099f4cadba5..fc19adc945645a7b87ac1432502ec925824494a8 100644
--- a/ppapi/proxy/dispatch_reply_message.h
+++ b/ppapi/proxy/dispatch_reply_message.h
@@ -10,6 +10,8 @@
#ifndef PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_
#define PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_
+#include <tuple>
+
#include "base/callback.h"
#include "ipc/ipc_message_macros.h"
#include "ppapi/c/pp_errors.h"
@@ -22,46 +24,46 @@ class ResourceMessageReplyParams;
template <class ObjT, class Method>
inline void DispatchResourceReply(ObjT* obj, Method method,
const ResourceMessageReplyParams& params,
- const base::Tuple<>& arg) {
+ const std::tuple<>& arg) {
(obj->*method)(params);
}
template <class ObjT, class Method, class A>
inline void DispatchResourceReply(ObjT* obj, Method method,
const ResourceMessageReplyParams& params,
- const base::Tuple<A>& arg) {
- (obj->*method)(params, base::get<0>(arg));
+ const std::tuple<A>& arg) {
+ (obj->*method)(params, std::get<0>(arg));
}
template<class ObjT, class Method, class A, class B>
inline void DispatchResourceReply(ObjT* obj, Method method,
const ResourceMessageReplyParams& params,
- const base::Tuple<A, B>& arg) {
- (obj->*method)(params, base::get<0>(arg), base::get<1>(arg));
+ const std::tuple<A, B>& arg) {
+ (obj->*method)(params, std::get<0>(arg), std::get<1>(arg));
}
template<class ObjT, class Method, class A, class B, class C>
inline void DispatchResourceReply(ObjT* obj, Method method,
const ResourceMessageReplyParams& params,
- const base::Tuple<A, B, C>& arg) {
- (obj->*method)(params, base::get<0>(arg), base::get<1>(arg),
- base::get<2>(arg));
+ const std::tuple<A, B, C>& arg) {
+ (obj->*method)(params, 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 void DispatchResourceReply(ObjT* obj, Method method,
const ResourceMessageReplyParams& params,
- const base::Tuple<A, B, C, D>& arg) {
- (obj->*method)(params, base::get<0>(arg), base::get<1>(arg),
- base::get<2>(arg), base::get<3>(arg));
+ const std::tuple<A, B, C, D>& arg) {
+ (obj->*method)(params, 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 void DispatchResourceReply(ObjT* obj, Method method,
const ResourceMessageReplyParams& params,
- const base::Tuple<A, B, C, D, E>& arg) {
- (obj->*method)(params, base::get<0>(arg), base::get<1>(arg),
- base::get<2>(arg), base::get<3>(arg), base::get<4>(arg));
+ const std::tuple<A, B, C, D, E>& arg) {
+ (obj->*method)(params, std::get<0>(arg), std::get<1>(arg),
+ std::get<2>(arg), std::get<3>(arg), std::get<4>(arg));
}
// Used to dispatch resource replies. In most cases, you should not call this
« no previous file with comments | « ppapi/host/dispatch_host_message.h ('k') | ppapi/proxy/nacl_message_scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698