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

Unified Diff: chrome/browser/media/media_internals.cc

Issue 10928043: Media Related changes for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 8 years, 2 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: 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);

Powered by Google App Engine
This is Rietveld 408576698