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..3569e08d3b2bda1963baf65df67265506137352a 100644 |
--- a/media/audio/audio_output_ipc.h |
+++ b/media/audio/audio_output_ipc.h |
@@ -12,27 +12,18 @@ |
#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.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; |
+ virtual void OnStateChanged(mojom::AudioOutputStreamState state) = 0; |
// Called when an authorization request for an output device has been |
// completed |