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

Unified Diff: content/renderer/media/media_stream_dispatcher.cc

Issue 2721113002: getUserMedia: handle the device starting status report. (Closed)
Patch Set: 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/renderer/media/media_stream_dispatcher.cc
diff --git a/content/renderer/media/media_stream_dispatcher.cc b/content/renderer/media/media_stream_dispatcher.cc
index 077c27cd980276ba447da112d64fdd5dc9f3dc01..2ce2c83aa7c6caa362be84862407bac86d792100 100644
--- a/content/renderer/media/media_stream_dispatcher.cc
+++ b/content/renderer/media/media_stream_dispatcher.cc
@@ -168,6 +168,13 @@ void MediaStreamDispatcher::CloseDevice(const std::string& label) {
Send(new MediaStreamHostMsg_CloseDevice(routing_id(), label));
}
+void MediaStreamDispatcher::OnStreamStarted(const std::string& label) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DVLOG(1) << "MediaStreamDispatcher::OnStreamStarted(" << label << ")";
+
+ Send(new MediaStreamHostMsg_StreamStarted(label));
+}
+
void MediaStreamDispatcher::OnDestruct() {
// Do not self-destruct. UserMediaClientImpl owns |this|.
}

Powered by Google App Engine
This is Rietveld 408576698