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 30 matching lines...) Expand all Loading... |
41 const PP_VideoCaptureDeviceInfo_Dev& requested_info, | 41 const PP_VideoCaptureDeviceInfo_Dev& requested_info, |
42 uint32_t buffer_count) OVERRIDE; | 42 uint32_t buffer_count) OVERRIDE; |
43 virtual int32_t ReuseBuffer(uint32_t buffer) OVERRIDE; | 43 virtual int32_t ReuseBuffer(uint32_t buffer) OVERRIDE; |
44 virtual int32_t StopCapture() OVERRIDE; | 44 virtual int32_t StopCapture() OVERRIDE; |
45 | 45 |
46 // media::VideoCapture::EventHandler implementation. | 46 // media::VideoCapture::EventHandler implementation. |
47 virtual void OnStarted(media::VideoCapture* capture) OVERRIDE; | 47 virtual void OnStarted(media::VideoCapture* capture) OVERRIDE; |
48 virtual void OnStopped(media::VideoCapture* capture) OVERRIDE; | 48 virtual void OnStopped(media::VideoCapture* capture) OVERRIDE; |
49 virtual void OnPaused(media::VideoCapture* capture) OVERRIDE; | 49 virtual void OnPaused(media::VideoCapture* capture) OVERRIDE; |
50 virtual void OnError(media::VideoCapture* capture, int error_code) OVERRIDE; | 50 virtual void OnError(media::VideoCapture* capture, int error_code) OVERRIDE; |
| 51 virtual void OnRemoved(media::VideoCapture* capture) OVERRIDE; |
51 virtual void OnBufferReady( | 52 virtual void OnBufferReady( |
52 media::VideoCapture* capture, | 53 media::VideoCapture* capture, |
53 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buffer) OVERRIDE; | 54 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buffer) OVERRIDE; |
54 virtual void OnDeviceInfoReceived( | 55 virtual void OnDeviceInfoReceived( |
55 media::VideoCapture* capture, | 56 media::VideoCapture* capture, |
56 const media::VideoCaptureParams& device_info) OVERRIDE; | 57 const media::VideoCaptureParams& device_info) OVERRIDE; |
57 | 58 |
58 private: | 59 private: |
59 void ReleaseBuffers(); | 60 void ReleaseBuffers(); |
60 void SendStatus(); | 61 void SendStatus(); |
(...skipping 14 matching lines...) Expand all Loading... |
75 const PPP_VideoCapture_Dev* ppp_videocapture_; | 76 const PPP_VideoCapture_Dev* ppp_videocapture_; |
76 PP_VideoCaptureStatus_Dev status_; | 77 PP_VideoCaptureStatus_Dev status_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl); | 79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace ppapi | 82 } // namespace ppapi |
82 } // namespace webkit | 83 } // namespace webkit |
83 | 84 |
84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 85 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
OLD | NEW |