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

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

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: Rebasing onto http://codereview.chromium.org/7491048 prior to (hopefully) relanding. Created 9 years, 4 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/media_observer.h
diff --git a/content/browser/renderer_host/media/media_observer.h b/content/browser/renderer_host/media/media_observer.h
index 50e42e085f9111bb5f9014366063bc11786ff5b1..6c5f0569126c47a56943c4fcf9bc304d1519b8bd 100644
--- a/content/browser/renderer_host/media/media_observer.h
+++ b/content/browser/renderer_host/media/media_observer.h
@@ -6,6 +6,10 @@
#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_OBSERVER_H_
#pragma once
+namespace media {
+struct MediaLogEvent;
+}
+
// A class may implement MediaObserver and register itself with ResourceContext
// to receive callbacks as media events occur.
class MediaObserver {
@@ -27,6 +31,10 @@ class MediaObserver {
// Called when the volume of an audio stream is set.
virtual void OnSetAudioStreamVolume(void* host, int stream_id,
double volume) = 0;
+
+ // Called when a MediaEvent occurs.
+ virtual void OnMediaEvent(int render_process_id,
+ const media::MediaLogEvent& event) = 0;
};
#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698