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