Index: content/renderer/media/video_capture_impl.h |
=================================================================== |
--- content/renderer/media/video_capture_impl.h (revision 102594) |
+++ content/renderer/media/video_capture_impl.h (working copy) |
@@ -17,6 +17,7 @@ |
namespace base { |
class MessageLoopProxy; |
+class WaitableEvent; |
} |
class VideoCaptureImpl |
@@ -25,13 +26,14 @@ |
public: |
// media::VideoCapture interface. |
virtual void StartCapture(media::VideoCapture::EventHandler* handler, |
- const VideoCaptureCapability& capability); |
- virtual void StopCapture(media::VideoCapture::EventHandler* handler); |
- virtual void FeedBuffer(scoped_refptr<VideoFrameBuffer> buffer); |
- virtual bool CaptureStarted(); |
- virtual int CaptureWidth(); |
- virtual int CaptureHeight(); |
- virtual int CaptureFrameRate(); |
+ const VideoCaptureCapability& capability) OVERRIDE; |
+ virtual void StopCapture(media::VideoCapture::EventHandler* handler, |
+ bool need_notification) OVERRIDE; |
+ virtual void FeedBuffer(scoped_refptr<VideoFrameBuffer> buffer) OVERRIDE; |
+ virtual bool CaptureStarted() OVERRIDE; |
+ virtual int CaptureWidth() OVERRIDE; |
+ virtual int CaptureHeight() OVERRIDE; |
+ virtual int CaptureFrameRate() OVERRIDE; |
// VideoCaptureMessageFilter::Delegate interface. |
virtual void OnBufferCreated(base::SharedMemoryHandle handle, |
@@ -68,7 +70,8 @@ |
void DoStartCapture(media::VideoCapture::EventHandler* handler, |
const VideoCaptureCapability& capability); |
- void DoStopCapture(media::VideoCapture::EventHandler* handler); |
+ void DoStopCapture(media::VideoCapture::EventHandler* handler, |
+ base::WaitableEvent* completion); |
void DoFeedBuffer(scoped_refptr<VideoFrameBuffer> buffer); |
void DoBufferCreated(base::SharedMemoryHandle handle, |