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

Unified Diff: media/audio/audio_output_ipc.h

Issue 1171953002: Add IPC interface for switching the audio output device for a given audio stream in the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix style Created 5 years, 6 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
« no previous file with comments | « media/audio/audio_logging.h ('k') | media/audio/fake_audio_log_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_ipc.h
diff --git a/media/audio/audio_output_ipc.h b/media/audio/audio_output_ipc.h
index f85d8e0195325dfc3add33238bc77d56a9d85cc2..05e4b288d569ed02632fda01193479be85dda43d 100644
--- a/media/audio/audio_output_ipc.h
+++ b/media/audio/audio_output_ipc.h
@@ -5,13 +5,27 @@
#ifndef MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_
#define MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_
+#include <string>
+
#include "base/memory/shared_memory.h"
#include "base/sync_socket.h"
#include "media/audio/audio_parameters.h"
#include "media/base/media_export.h"
+#include "url/gurl.h"
namespace media {
+// Result of an audio output device switch operation
+enum SwitchOutputDeviceResult {
+ SWITCH_OUTPUT_DEVICE_RESULT_SUCCESS = 0,
+ SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_FOUND,
+ SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_AUTHORIZED,
+ SWITCH_OUTPUT_DEVICE_RESULT_ERROR_OBSOLETE,
+ SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_SUPPORTED,
+ SWITCH_OUTPUT_DEVICE_RESULT_LAST =
+ SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_SUPPORTED,
+};
+
// Contains IPC notifications for the state of the server side
// (AudioOutputController) audio state changes and when an AudioOutputController
// has been created. Implemented by AudioOutputDevice.
« no previous file with comments | « media/audio/audio_logging.h ('k') | media/audio/fake_audio_log_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698