| OLD | NEW |
| 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 WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual void OnInitialized(media::VideoCapture* capture, | 48 virtual void OnInitialized(media::VideoCapture* capture, |
| 49 bool succeeded) OVERRIDE; | 49 bool succeeded) OVERRIDE; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 typedef std::vector< ::ppapi::DeviceRefData> DeviceRefDataVector; | 52 typedef std::vector< ::ppapi::DeviceRefData> DeviceRefDataVector; |
| 53 | 53 |
| 54 // PPB_VideoCapture_Shared implementation. | 54 // PPB_VideoCapture_Shared implementation. |
| 55 virtual int32_t InternalEnumerateDevices( | 55 virtual int32_t InternalEnumerateDevices( |
| 56 PP_Resource* devices, | 56 PP_Resource* devices, |
| 57 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; | 57 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
| 58 virtual int32_t InternalStopEnumerateDevices(PP_Resource* devices) OVERRIDE; |
| 58 virtual int32_t InternalOpen( | 59 virtual int32_t InternalOpen( |
| 59 const std::string& device_id, | 60 const std::string& device_id, |
| 60 const PP_VideoCaptureDeviceInfo_Dev& requested_info, | 61 const PP_VideoCaptureDeviceInfo_Dev& requested_info, |
| 61 uint32_t buffer_count, | 62 uint32_t buffer_count, |
| 62 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; | 63 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
| 63 virtual int32_t InternalStartCapture() OVERRIDE; | 64 virtual int32_t InternalStartCapture() OVERRIDE; |
| 64 virtual int32_t InternalReuseBuffer(uint32_t buffer) OVERRIDE; | 65 virtual int32_t InternalReuseBuffer(uint32_t buffer) OVERRIDE; |
| 65 virtual int32_t InternalStopCapture() OVERRIDE; | 66 virtual int32_t InternalStopCapture() OVERRIDE; |
| 66 virtual void InternalClose() OVERRIDE; | 67 virtual void InternalClose() OVERRIDE; |
| 67 virtual int32_t InternalStartCapture0_1( | 68 virtual int32_t InternalStartCapture0_1( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 101 |
| 101 media::VideoCaptureCapability capability_; | 102 media::VideoCaptureCapability capability_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl); | 104 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace ppapi | 107 } // namespace ppapi |
| 107 } // namespace webkit | 108 } // namespace webkit |
| 108 | 109 |
| 109 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ | 110 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |