Index: ppapi/proxy/ppb_buffer_proxy.h |
=================================================================== |
--- ppapi/proxy/ppb_buffer_proxy.h (revision 100753) |
+++ ppapi/proxy/ppb_buffer_proxy.h (working copy) |
@@ -46,20 +46,24 @@ |
class PPB_Buffer_Proxy : public InterfaceProxy { |
public: |
- PPB_Buffer_Proxy(Dispatcher* dispatcher); |
+ PPB_Buffer_Proxy(Dispatcher* dispatcher, const void* target_interface); |
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, |