diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 14:38:24 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 14:38:24 +0000 |
commit | b20df1c2cf9c588dbe99b780362f63df19d80ae3 (patch) | |
tree | 16685a665167d65ab4b3a54aed443517514d8853 /ppapi/proxy/ppp_messaging_proxy.h | |
parent | 0cd9ef3d6860ef50c46f590b0d1c990041e06da8 (diff) | |
download | chromium_src-b20df1c2cf9c588dbe99b780362f63df19d80ae3.zip chromium_src-b20df1c2cf9c588dbe99b780362f63df19d80ae3.tar.gz chromium_src-b20df1c2cf9c588dbe99b780362f63df19d80ae3.tar.bz2 |
Proxy PPP_Messaging.
I added a couple of tests while I was figuring out the ref counting problem I was having. Also lots of bonus spelling fixes.
BUG=86123
TEST=ppp_messaging_proxy_test and ppapi_tests
Review URL: http://codereview.chromium.org/7531003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppp_messaging_proxy.h')
-rw-r--r-- | ppapi/proxy/ppp_messaging_proxy.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ppapi/proxy/ppp_messaging_proxy.h b/ppapi/proxy/ppp_messaging_proxy.h new file mode 100644 index 0000000..a8b396a --- /dev/null +++ b/ppapi/proxy/ppp_messaging_proxy.h @@ -0,0 +1,41 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_PROXY_PPP_MESSAGING_PROXY_H_ +#define PPAPI_PROXY_PPP_MESSAGING_PROXY_H_ + +#include "ppapi/c/pp_instance.h" +#include "ppapi/proxy/interface_proxy.h" + +struct PPP_Messaging; + +namespace pp { +namespace proxy { + +class SerializedVarReceiveInput; + +class PPP_Messaging_Proxy : public InterfaceProxy { + public: + PPP_Messaging_Proxy(Dispatcher* dispatcher, const void* target_interface); + virtual ~PPP_Messaging_Proxy(); + + static const Info* GetInfo(); + + const PPP_Messaging* ppp_messaging_target() const { + return static_cast<const PPP_Messaging*>(target_interface()); + } + + // InterfaceProxy implementation. + virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; + + private: + // Message handlers. + void OnMsgHandleMessage(PP_Instance instance, + SerializedVarReceiveInput data); +}; + +} // namespace proxy +} // namespace pp + +#endif // PPAPI_PROXY_PPP_MESSAGING_PROXY_H_ |