| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 class PPB_VideoCapture_Impl : public Resource, | 29 class PPB_VideoCapture_Impl : public Resource, |
| 30 public ::ppapi::thunk::PPB_VideoCapture_API, | 30 public ::ppapi::thunk::PPB_VideoCapture_API, |
| 31 public media::VideoCapture::EventHandler { | 31 public media::VideoCapture::EventHandler { |
| 32 public: | 32 public: |
| 33 explicit PPB_VideoCapture_Impl(PluginInstance* instance); | 33 explicit PPB_VideoCapture_Impl(PluginInstance* instance); |
| 34 virtual ~PPB_VideoCapture_Impl(); | 34 virtual ~PPB_VideoCapture_Impl(); |
| 35 | 35 |
| 36 bool Init(); | 36 bool Init(); |
| 37 | 37 |
| 38 // ResourceObjectBase overrides. | 38 // Resource overrides. |
| 39 virtual PPB_VideoCapture_API* AsPPB_VideoCapture_API() OVERRIDE; | 39 virtual PPB_VideoCapture_API* AsPPB_VideoCapture_API() OVERRIDE; |
| 40 | 40 |
| 41 // PPB_VideoCapture implementation. | 41 // PPB_VideoCapture implementation. |
| 42 virtual int32_t StartCapture( | 42 virtual int32_t StartCapture( |
| 43 const PP_VideoCaptureDeviceInfo_Dev& requested_info, | 43 const PP_VideoCaptureDeviceInfo_Dev& requested_info, |
| 44 uint32_t buffer_count) OVERRIDE; | 44 uint32_t buffer_count) OVERRIDE; |
| 45 virtual int32_t ReuseBuffer(uint32_t buffer) OVERRIDE; | 45 virtual int32_t ReuseBuffer(uint32_t buffer) OVERRIDE; |
| 46 virtual int32_t StopCapture() OVERRIDE; | 46 virtual int32_t StopCapture() OVERRIDE; |
| 47 | 47 |
| 48 // media::VideoCapture::EventHandler implementation. | 48 // media::VideoCapture::EventHandler implementation. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 77 const PPP_VideoCapture_Dev* ppp_videocapture_; | 77 const PPP_VideoCapture_Dev* ppp_videocapture_; |
| 78 PP_VideoCaptureStatus_Dev status_; | 78 PP_VideoCaptureStatus_Dev status_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl); | 80 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace ppapi | 83 } // namespace ppapi |
| 84 } // namespace webkit | 84 } // namespace webkit |
| 85 | 85 |
| 86 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 86 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |