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

Unified Diff: content/common/media/audio_output.mojom

Issue 1896883002: Mojo interfaces needed for switching audio rendering stream creation and closing from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: content/common/media/audio_output.mojom
diff --git a/content/common/media/audio_output.mojom b/content/common/media/audio_output.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..ee833f473091b6cd98958579efef9084c9bf6a28
--- /dev/null
+++ b/content/common/media/audio_output.mojom
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module media.mojom;
xhwang 2016/05/06 16:27:29 This should be in content.mojom now.
rchtara 2016/05/09 15:14:58 Done.
+
+import "media/mojo/interfaces/media_types.mojom";
+
+// This interface handles audio output stream operations.
+// It allows to close a stream.
+// TODO(rchtara): Add methods that allow the interaction with audio output
+// streams: Play, Pause and SetVolume to this interface.
+// See crbug.com/606707 for more details.
+interface AudioOutputStream {
+ Close();
+};
+
+// This interface manages audio output streams.
+// It allows to create an AudioOutputStream.
+// TODO(rchtara): Add method to request a device authorization to this
+// interface.
+// See crbug.com/606707 for more details.
+interface AudioOutput {
+ CreateStream(
+ int32 stream_id,
+ int32 render_frame_id,
+ media.interfaces.AudioParameters params) =>
+ (int32 stream_id,
+ AudioOutputStream? stream,
+ handle<shared_buffer>? shared_buffer,
+ handle? socket_descriptor);
+ // Used to close streams which are just authorized but not created yet.
+ CloseStream(int32 stream_id);
xhwang 2016/05/06 16:27:29 Typically in mojo world when the connection is dro
rchtara 2016/05/09 15:14:58 We were planning to take advantage of that to repo
+};

Powered by Google App Engine
This is Rietveld 408576698