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

Unified Diff: content/renderer/media/video_capture_impl.h

Issue 8036005: Add a flag in StopCapture to allow event handler to choose event notification. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add missing file Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/capture_video_decoder.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « content/renderer/media/capture_video_decoder.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698