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

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

Issue 7480032: Plumb media data from renderers up to MediaInternals in the browser process. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Much cleanup and making MediaLog thread safe. Created 9 years, 5 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 bf632817a11c20eea767f93f7f2c53744f86a2bc..b0fac0bf6567fd592dfbbef2f99ce0c4f4703684 100644
--- a/chrome/browser/media/media_internals.cc
+++ b/chrome/browser/media/media_internals.cc
@@ -46,6 +46,12 @@ void MediaInternals::OnSetAudioStreamVolume(
"volume", Value::CreateDoubleValue(volume));
}
+void MediaInternals::OnMediaEvent(const media::MediaLog::Event& event) {
+ DCHECK(CalledOnValidThread());
+ // TODO(scottfr): Handle |event|. Record status information in data_ and pass
+ // |event| along to observers.
+}
+
void MediaInternals::AddObserver(MediaInternalsObserver* observer) {
DCHECK(CalledOnValidThread());
observers_.AddObserver(observer);

Powered by Google App Engine
This is Rietveld 408576698