diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-13 04:18:44 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-13 04:18:44 +0000 |
commit | be0a84b5a8b1e4e801788fc5d4f42037a88f8c45 (patch) | |
tree | 4033971ac6f11af82464359f4f4e55015eb926f0 /ppapi/proxy/ppb_video_capture_proxy.h | |
parent | 5e6c226780eb1617aa9ed980c627af66685d52e4 (diff) | |
download | chromium_src-be0a84b5a8b1e4e801788fc5d4f42037a88f8c45.zip chromium_src-be0a84b5a8b1e4e801788fc5d4f42037a88f8c45.tar.gz chromium_src-be0a84b5a8b1e4e801788fc5d4f42037a88f8c45.tar.bz2 |
Move host resource from the proxy to the shared_impl.
This is needed by my new unified resoruce tracker, which will use this file from the shared_impl in the new resource base object.
I fixed up the namespaces for the callers. Longer term, I want to put the
proxy in the ppapi namespace which will eliminate some of this mess.
Review URL: http://codereview.chromium.org/7623018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96678 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_video_capture_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_video_capture_proxy.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/ppapi/proxy/ppb_video_capture_proxy.h b/ppapi/proxy/ppb_video_capture_proxy.h index 34b6536..c324cd9 100644 --- a/ppapi/proxy/ppb_video_capture_proxy.h +++ b/ppapi/proxy/ppb_video_capture_proxy.h @@ -13,11 +13,13 @@ struct PPB_VideoCapture_Dev; struct PPP_VideoCapture_Dev; struct PP_VideoCaptureDeviceInfo_Dev; +namespace ppapi { +class HostResource; +} + namespace pp { namespace proxy { -class HostResource; - class PPB_VideoCapture_Proxy : public InterfaceProxy { public: PPB_VideoCapture_Proxy(Dispatcher* dispatcher, const void* target_interface); @@ -36,13 +38,13 @@ class PPB_VideoCapture_Proxy : public InterfaceProxy { private: // Message handlers. - void OnMsgCreate(PP_Instance instance, HostResource* result_resource); - void OnMsgStartCapture(const HostResource& resource, + void OnMsgCreate(PP_Instance instance, ppapi::HostResource* result_resource); + void OnMsgStartCapture(const ppapi::HostResource& resource, const PP_VideoCaptureDeviceInfo_Dev& info, uint32_t buffers); - void OnMsgReuseBuffer(const HostResource& resource, + void OnMsgReuseBuffer(const ppapi::HostResource& resource, uint32_t buffer); - void OnMsgStopCapture(const HostResource& resource); + void OnMsgStopCapture(const ppapi::HostResource& resource); }; class PPP_VideoCapture_Proxy : public InterfaceProxy { @@ -61,14 +63,14 @@ class PPP_VideoCapture_Proxy : public InterfaceProxy { private: // Message handlers. - void OnMsgOnDeviceInfo(const HostResource& video_capture, + void OnMsgOnDeviceInfo(const ppapi::HostResource& video_capture, const PP_VideoCaptureDeviceInfo_Dev& info, const std::vector<PPPVideoCapture_Buffer>& buffers); - void OnMsgOnStatus(const HostResource& video_capture, + void OnMsgOnStatus(const ppapi::HostResource& video_capture, uint32_t status); - void OnMsgOnError(const HostResource& video_capture, + void OnMsgOnError(const ppapi::HostResource& video_capture, uint32_t error_code); - void OnMsgOnBufferReady(const HostResource& video_capture, + void OnMsgOnBufferReady(const ppapi::HostResource& video_capture, uint32_t buffer); }; |