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

Unified Diff: media/audio/audio_output_ipc.h

Issue 2289543003: IPC->mojo of audio_renderer_host (Closed)
Patch Set: New interface. 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..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,

Powered by Google App Engine
This is Rietveld 408576698