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

Unified Diff: ppapi/proxy/ppb_hello_proxy.h

Issue 8414054: Hello Pepper API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_hello_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_hello_proxy.h
diff --git a/ppapi/proxy/ppb_hello_proxy.h b/ppapi/proxy/ppb_hello_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..6272e90906cc15f535e901322c9b88b22a64f589
--- /dev/null
+++ b/ppapi/proxy/ppb_hello_proxy.h
@@ -0,0 +1,46 @@
+// 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_PPB_HELLO_PROXY_H_
+#define PPAPI_PPB_HELLO_PROXY_H_
+
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/proxy/interface_proxy.h"
+#include "ppapi/shared_impl/hello_impl.h"
+#include "ppapi/shared_impl/resource.h"
+
+namespace ppapi {
+
+struct PPB_Hello;
+
+class HostResource;
+
+namespace proxy {
+
+class SerializedVarReturnValue;
+
+class PPB_Hello_Proxy : public InterfaceProxy {
+ public:
+ PPB_Hello_Proxy(Dispatcher* dispatcher);
+ virtual ~PPB_Hello_Proxy();
+
+ static PP_Resource CreateProxyResource(PP_Instance instance);
+
+ // InterfaceProxy implementation.
+ virtual bool OnMessageReceived(const IPC::Message& msg);
+
+ static const ApiID kApiID = API_ID_PPB_HELLO;
+
+ private:
+ // Message handlers.
+ void OnMsgCreate(PP_Instance instance, HostResource* result);
+ void OnMsgHello(const HostResource& resource);
+ void OnMsgWhoAreYou(const HostResource& resource,
+ SerializedVarReturnValue result);
+};
+
+} // namespace proxy
+} // namespace ppapi
+
+#endif // PPAPI_PPB_HELLO_PROXY_H_
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_hello_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698