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

Unified Diff: media/audio/audio_output_ipc.h

Issue 2289543003: IPC->mojo of audio_renderer_host (Closed)
Patch Set: New interfaces. Created 4 years, 3 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: media/audio/audio_output_ipc.h
diff --git a/media/audio/audio_output_ipc.h b/media/audio/audio_output_ipc.h
index c8c1d497ac356aff98331652e7ff6689663e7a31..39f501105167b08294544449aa608b4f9e2e269d 100644
--- a/media/audio/audio_output_ipc.h
+++ b/media/audio/audio_output_ipc.h
@@ -12,27 +12,19 @@
#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;
+ virtual void OnStateChanged(mojom::AudioOutputStreamState state) = 0;
// Called when an authorization request for an output device has been
// completed

Powered by Google App Engine
This is Rietveld 408576698