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

Unified Diff: content/browser/renderer_host/media/video_capture_controller_event_handler.h

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: address comments on PS#8 Created 3 years, 10 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
Index: content/browser/renderer_host/media/video_capture_controller_event_handler.h
diff --git a/content/browser/renderer_host/media/video_capture_controller_event_handler.h b/content/browser/renderer_host/media/video_capture_controller_event_handler.h
index 301070cceaeddfb458131c7edae4349f59f45ba2..d90c3093d4bf896c764e41a8b2e19fb13e321b2a 100644
--- a/content/browser/renderer_host/media/video_capture_controller_event_handler.h
+++ b/content/browser/renderer_host/media/video_capture_controller_event_handler.h
@@ -24,6 +24,11 @@ typedef int VideoCaptureControllerID;
// VideoCaptureControllerEventHandler is the interface for
// VideoCaptureController to notify clients about the events such as
// BufferReady, FrameInfo, Error, etc.
+
+// OnError and OnEnded need to be scheduled to the end of message queue to
+// guarantee some other clearing jobs are done before they are handled.
+// Other methods can be forwarded synchronously.
+
// TODO(mcasas): https://crbug.com/654176 merge back into VideoCaptureController
class CONTENT_EXPORT VideoCaptureControllerEventHandler {
public:
@@ -49,6 +54,9 @@ class CONTENT_EXPORT VideoCaptureControllerEventHandler {
// The capture session has ended and no more frames will be sent.
virtual void OnEnded(VideoCaptureControllerID id) = 0;
+ // VideoCaptureDevice has successfully started the device.
+ virtual void OnStarted(VideoCaptureControllerID id) = 0;
+
protected:
virtual ~VideoCaptureControllerEventHandler() {}
};

Powered by Google App Engine
This is Rietveld 408576698