| OLD | NEW | 
|---|
| (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_ | 
| OLD | NEW | 
|---|