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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 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.
6
7 import "media/mojo/interfaces/media_types.mojom";
8
9 // This interface handles audio output stream operations. It will be used by
10 // the AudioOutputClient in the renderer to perform operations on
11 // 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.
12 interface AudioOutputStream {
13 Close();
14 };
15
16 // This interface manages audio output streams. It will be used by
17 // the AudioOutputClient in the renderer to perform operations on
18 // 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.
19 interface AudioOutput {
20 CreateStream(
21 int32 stream_id,
22 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
23 AudioOutputStreamParameters params) =>
24 (int32 stream_id,
25 AudioOutputStream? stream,
26 handle<shared_buffer>? shared_buffer,
27 handle? socket_descriptor);
28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698