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_ |