diff options
Diffstat (limited to 'ppapi/proxy/ppb_buffer_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_buffer_proxy.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ppapi/proxy/ppb_buffer_proxy.h b/ppapi/proxy/ppb_buffer_proxy.h index 2c0b875..4105dcc 100644 --- a/ppapi/proxy/ppb_buffer_proxy.h +++ b/ppapi/proxy/ppb_buffer_proxy.h @@ -46,24 +46,20 @@ class Buffer : public thunk::PPB_Buffer_API, public Resource { class PPB_Buffer_Proxy : public InterfaceProxy { public: - PPB_Buffer_Proxy(Dispatcher* dispatcher, const void* target_interface); + PPB_Buffer_Proxy(Dispatcher* dispatcher); virtual ~PPB_Buffer_Proxy(); - static const Info* GetInfo(); - static PP_Resource CreateProxyResource(PP_Instance instance, uint32_t size); static PP_Resource AddProxyResource(const HostResource& resource, base::SharedMemoryHandle shm_handle, uint32_t size); - const PPB_Buffer_Dev* ppb_buffer_target() const { - return static_cast<const PPB_Buffer_Dev*>(target_interface()); - } - // InterfaceProxy implementation. virtual bool OnMessageReceived(const IPC::Message& msg); + static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_BUFFER; + private: // Message handlers. void OnMsgCreate(PP_Instance instance, |