Index: chrome/browser/media/media_internals.cc |
diff --git a/chrome/browser/media/media_internals.cc b/chrome/browser/media/media_internals.cc |
index cca5c7650b2cfa132099abedff26a1649a81176b..cb0770b0d8fe97dba4196a4b29265deccbcaaf1c 100644 |
--- a/chrome/browser/media/media_internals.cc |
+++ b/chrome/browser/media/media_internals.cc |
@@ -86,6 +86,18 @@ void MediaInternals::OnCaptureDevicesClosed( |
devices); |
} |
+void MediaInternals::OnMediaRequestStateChanged( |
+ int render_process_id, |
+ int render_view_id, |
+ const content::MediaStreamDevice& device, |
+ const content::MediaStreamRequest::RequestState state) { |
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ if (observers_.size()) { |
+ FOR_EACH_OBSERVER(MediaInternalsObserver, observers_, |
+ OnRequestUpdate(device, state)); |
+ } |
+} |
+ |
void MediaInternals::AddObserver(MediaInternalsObserver* observer) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
observers_.AddObserver(observer); |