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

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

Issue 13616004: Switch event type when a capture device has been stopped from the render process. This make sure th… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed code review comments. Created 7 years, 8 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/common/media/video_capture.h ('k') | content/renderer/media/rtc_video_capture_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_capture_delegate.h
diff --git a/content/renderer/media/rtc_video_capture_delegate.h b/content/renderer/media/rtc_video_capture_delegate.h
index 648225090330d5145754caed95ab8d7ee67e92b7..ac535f86ce811928bb3706c796c327985757ad76 100644
--- a/content/renderer/media/rtc_video_capture_delegate.h
+++ b/content/renderer/media/rtc_video_capture_delegate.h
@@ -63,7 +63,8 @@ class RtcVideoCaptureDelegate
void OnBufferReadyOnCaptureThread(
media::VideoCapture* capture,
scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf);
- void OnErrorOnCaptureThread(media::VideoCapture* capture, int error_code);
+ void OnErrorOnCaptureThread(media::VideoCapture* capture);
+ void OnRemovedOnCaptureThread(media::VideoCapture* capture);
// The id identifies which video capture device is used for this video
// capture session.
@@ -74,6 +75,7 @@ class RtcVideoCaptureDelegate
// Accessed on the thread where StartCapture is called.
bool got_first_frame_;
+ bool error_occured_;
// |captured_callback_| is provided to this class in StartCapture and must be
// valid until StopCapture is called.
« no previous file with comments | « content/common/media/video_capture.h ('k') | content/renderer/media/rtc_video_capture_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698