Index: media/audio/audio_output_ipc.h |
diff --git a/media/audio/audio_output_ipc.h b/media/audio/audio_output_ipc.h |
index c8c1d497ac356aff98331652e7ff6689663e7a31..7e245d9013f7a0fa63ac2869502cf4839030ba21 100644 |
--- a/media/audio/audio_output_ipc.h |
+++ b/media/audio/audio_output_ipc.h |
@@ -12,28 +12,17 @@ |
#include "media/base/audio_parameters.h" |
#include "media/base/media_export.h" |
#include "media/base/output_device_info.h" |
+#include "media/mojo/interfaces/audio_output.mojom-shared.h" |
+#include "media/mojo/interfaces/audio_output.mojom.h" |
#include "url/origin.h" |
namespace media { |
-// Current status of the audio output stream in the browser process. Browser |
-// sends information about the current playback state and error to the |
-// renderer process using this type. |
-enum AudioOutputIPCDelegateState { |
- AUDIO_OUTPUT_IPC_DELEGATE_STATE_PLAYING, |
- AUDIO_OUTPUT_IPC_DELEGATE_STATE_PAUSED, |
- AUDIO_OUTPUT_IPC_DELEGATE_STATE_ERROR, |
- AUDIO_OUTPUT_IPC_DELEGATE_STATE_LAST = AUDIO_OUTPUT_IPC_DELEGATE_STATE_ERROR |
-}; |
- |
// Contains IPC notifications for the state of the server side |
// (AudioOutputController) audio state changes and when an AudioOutputController |
// has been created. Implemented by AudioOutputDevice. |
class MEDIA_EXPORT AudioOutputIPCDelegate { |
public: |
- // Called when state of an audio stream has changed. |
- virtual void OnStateChanged(AudioOutputIPCDelegateState state) = 0; |
- |
// Called when an authorization request for an output device has been |
// completed |
virtual void OnDeviceAuthorized(OutputDeviceStatus device_status, |