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

Unified Diff: media/mojo/interfaces/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: remove content files Created 4 years, 8 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/mojo/interfaces/audio_output.mojom
diff --git a/media/mojo/interfaces/audio_output.mojom b/media/mojo/interfaces/audio_output.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..e945f3d1b8db0c3b1cf87551b06fae54ed57d3e5
--- /dev/null
+++ b/media/mojo/interfaces/audio_output.mojom
@@ -0,0 +1,28 @@
+// 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.interfaces;
mcasas 2016/04/29 17:14:11 It's customary to call these modules module media
xhwang 2016/04/29 17:16:24 We already have a bug for this: https://bugs.chrom
xhwang 2016/04/29 17:47:56 Actually feel free to use media.mojom for new inte
rchtara 2016/05/02 15:54:11 Done.
rchtara 2016/05/02 15:54:11 Done.
rchtara 2016/05/02 15:54:11 Done.
+
+import "media/mojo/interfaces/media_types.mojom";
+
+// This interface handles audio output stream operations. It will be used by
+// the AudioOutputClient in the renderer to perform operations on
+// AudioOutputStreamImpl in the browser.
xhwang 2016/04/29 17:47:56 It's still odd that you create this stream, doing
xhwang 2016/04/29 17:47:56 Please document what this interface does instead o
rchtara 2016/05/02 15:54:10 yes, we are going to add play, pause, setvolume
rchtara 2016/05/02 15:54:11 Done.
+interface AudioOutputStream {
+ Close();
+};
+
+// This interface manages audio output streams. It will be used by
+// the AudioOutputClient in the renderer to perform operations on
+// AudioOutputImpl in the browser.
xhwang 2016/04/29 17:47:56 Please document what this interface does instead o
rchtara 2016/05/02 15:54:11 Done.
+interface AudioOutput {
+ CreateStream(
+ int32 stream_id,
+ int32 render_frame_id,
xhwang 2016/04/29 17:47:56 This still looks wrong; media should not know abou
rchtara 2016/05/02 15:54:11 Done.
rchtara 2016/05/04 08:38:43 we are going to move the interface to the content
+ AudioOutputStreamParameters params) =>
+ (int32 stream_id,
+ AudioOutputStream? stream,
+ handle<shared_buffer>? shared_buffer,
+ handle? socket_descriptor);
+};

Powered by Google App Engine
This is Rietveld 408576698