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

Side by Side Diff: ppapi/proxy/ppb_video_capture_proxy.h

Issue 10837064: Corresponding change in Pepper since EnumerateDevices contract is changed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_
6 #define PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 // InterfaceProxy implementation. 34 // InterfaceProxy implementation.
35 virtual bool OnMessageReceived(const IPC::Message& msg); 35 virtual bool OnMessageReceived(const IPC::Message& msg);
36 36
37 static const ApiID kApiID = API_ID_PPB_VIDEO_CAPTURE_DEV; 37 static const ApiID kApiID = API_ID_PPB_VIDEO_CAPTURE_DEV;
38 38
39 private: 39 private:
40 // Message handlers in the renderer process. 40 // Message handlers in the renderer process.
41 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* result_resource); 41 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* result_resource);
42 void OnMsgEnumerateDevices(const ppapi::HostResource& resource); 42 void OnMsgEnumerateDevices(const ppapi::HostResource& resource);
43 void OnMsgStopEnumerateDevices(const ppapi::HostResource& resource);
43 void OnMsgOpen(const ppapi::HostResource& resource, 44 void OnMsgOpen(const ppapi::HostResource& resource,
44 const std::string& device_id, 45 const std::string& device_id,
45 const PP_VideoCaptureDeviceInfo_Dev& info, 46 const PP_VideoCaptureDeviceInfo_Dev& info,
46 uint32_t buffers); 47 uint32_t buffers);
47 void OnMsgStartCapture(const ppapi::HostResource& resource); 48 void OnMsgStartCapture(const ppapi::HostResource& resource);
48 void OnMsgReuseBuffer(const ppapi::HostResource& resource, 49 void OnMsgReuseBuffer(const ppapi::HostResource& resource,
49 uint32_t buffer); 50 uint32_t buffer);
50 void OnMsgStopCapture(const ppapi::HostResource& resource); 51 void OnMsgStopCapture(const ppapi::HostResource& resource);
51 void OnMsgClose(const ppapi::HostResource& resource); 52 void OnMsgClose(const ppapi::HostResource& resource);
52 void OnMsgStartCapture0_1(const ppapi::HostResource& resource, 53 void OnMsgStartCapture0_1(const ppapi::HostResource& resource,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // In the host, this value is always NULL. 99 // In the host, this value is always NULL.
99 const PPP_VideoCapture_Dev* ppp_video_capture_impl_; 100 const PPP_VideoCapture_Dev* ppp_video_capture_impl_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(PPP_VideoCapture_Proxy); 102 DISALLOW_COPY_AND_ASSIGN(PPP_VideoCapture_Proxy);
102 }; 103 };
103 104
104 } // namespace proxy 105 } // namespace proxy
105 } // namespace ppapi 106 } // namespace ppapi
106 107
107 #endif // PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ 108 #endif // PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698