diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 14:46:17 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 14:46:17 +0000 |
commit | ec47b0882c224c1e21cf213558bc2aef71279ad1 (patch) | |
tree | f58460b2b61082b00e0a3fd15d3dfb5e39e318bc /ppapi/host | |
parent | a86d4f2857de0b0a47db915f6ed4a21089044f65 (diff) | |
download | chromium_src-ec47b0882c224c1e21cf213558bc2aef71279ad1.zip chromium_src-ec47b0882c224c1e21cf213558bc2aef71279ad1.tar.gz chromium_src-ec47b0882c224c1e21cf213558bc2aef71279ad1.tar.bz2 |
Apps V2 in Pepper: Host side implementation of ExntensionsCommon - Part 1.
This change handles the most common case: There is no need to call into JS custom bindings; requests are directly relayed to the browser process.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/12567028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/host')
-rw-r--r-- | ppapi/host/dispatch_host_message.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ppapi/host/dispatch_host_message.h b/ppapi/host/dispatch_host_message.h index b9e57dc..2498725 100644 --- a/ppapi/host/dispatch_host_message.h +++ b/ppapi/host/dispatch_host_message.h @@ -22,42 +22,42 @@ struct HostMessageContext; template <class ObjT, class Method> inline int32_t DispatchResourceCall(ObjT* obj, Method method, HostMessageContext* context, - const Tuple0& arg) { + Tuple0& arg) { return (obj->*method)(context); } template <class ObjT, class Method, class A> inline int32_t DispatchResourceCall(ObjT* obj, Method method, HostMessageContext* context, - const Tuple1<A>& arg) { + Tuple1<A>& arg) { return (obj->*method)(context, arg.a); } template<class ObjT, class Method, class A, class B> inline int32_t DispatchResourceCall(ObjT* obj, Method method, HostMessageContext* context, - const Tuple2<A, B>& arg) { + Tuple2<A, B>& arg) { return (obj->*method)(context, arg.a, arg.b); } template<class ObjT, class Method, class A, class B, class C> inline int32_t DispatchResourceCall(ObjT* obj, Method method, HostMessageContext* context, - const Tuple3<A, B, C>& arg) { + Tuple3<A, B, C>& arg) { return (obj->*method)(context, arg.a, arg.b, arg.c); } template<class ObjT, class Method, class A, class B, class C, class D> inline int32_t DispatchResourceCall(ObjT* obj, Method method, HostMessageContext* context, - const Tuple4<A, B, C, D>& arg) { + Tuple4<A, B, C, D>& arg) { return (obj->*method)(context, arg.a, arg.b, arg.c, arg.d); } 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, - const Tuple5<A, B, C, D, E>& arg) { + Tuple5<A, B, C, D, E>& arg) { return (obj->*method)(context, arg.a, arg.b, arg.c, arg.d, arg.e); } |