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

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: 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: 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..8755c405c37ac364f322dab7325ee96fc6b70b70 100644
--- a/content/browser/renderer_host/media/media_observer.h
+++ b/content/browser/renderer_host/media/media_observer.h
@@ -6,6 +6,8 @@
#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_OBSERVER_H_
#pragma once
+#include "media/base/media_log.h"
jam 2011/07/29 16:08:55 the C++ style guide advises against inner classes
Scott Franklin 2011/07/29 22:30:25 Done.
+
// A class may implement MediaObserver and register itself with ResourceContext
// to receive callbacks as media events occur.
class MediaObserver {
@@ -27,6 +29,9 @@ 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(const media::MediaLog::Event& event) = 0;
};
#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698