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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_hello_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PPB_HELLO_PROXY_H_
6 #define PPAPI_PPB_HELLO_PROXY_H_
7
8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/proxy/interface_proxy.h"
10 #include "ppapi/shared_impl/hello_impl.h"
11 #include "ppapi/shared_impl/resource.h"
12
13 namespace ppapi {
14
15 struct PPB_Hello;
16
17 class HostResource;
18
19 namespace proxy {
20
21 class SerializedVarReturnValue;
22
23 class PPB_Hello_Proxy : public InterfaceProxy {
24 public:
25 PPB_Hello_Proxy(Dispatcher* dispatcher);
26 virtual ~PPB_Hello_Proxy();
27
28 static PP_Resource CreateProxyResource(PP_Instance instance);
29
30 // InterfaceProxy implementation.
31 virtual bool OnMessageReceived(const IPC::Message& msg);
32
33 static const ApiID kApiID = API_ID_PPB_HELLO;
34
35 private:
36 // Message handlers.
37 void OnMsgCreate(PP_Instance instance, HostResource* result);
38 void OnMsgHello(const HostResource& resource);
39 void OnMsgWhoAreYou(const HostResource& resource,
40 SerializedVarReturnValue result);
41 };
42
43 } // namespace proxy
44 } // namespace ppapi
45
46 #endif // PPAPI_PPB_HELLO_PROXY_H_
OLDNEW
« 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