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

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

Issue 2792293002: Reland of Add mojo interface+impl creation of audio streams. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/renderer_audio_output_stream_factory.mojom
diff --git a/content/common/media/renderer_audio_output_stream_factory.mojom b/content/common/media/renderer_audio_output_stream_factory.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..d0992782fc5ab665a64c184a59cf07b511d04698
--- /dev/null
+++ b/content/common/media/renderer_audio_output_stream_factory.mojom
@@ -0,0 +1,25 @@
+// Copyright 2017 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 content.mojom;
+
+import "media/mojo/interfaces/audio_output_stream.mojom";
+import "media/mojo/interfaces/audio_parameters.mojom";
+import "media/mojo/interfaces/media_types.mojom";
+
+// This interface is used to create output streams. The client supplies a
+// request for a stream provider, and then supplies the desired audio
+// parameters to that to create the stream.
+interface RendererAudioOutputStreamFactory {
+ // Used to request a device. The AudioOutputStreamProviderRequest will be
+ // bound to an AudioOutputStreamProvider implementation or closed
+ // (in case of an error).
+ RequestDeviceAuthorization(
+ media.mojom.AudioOutputStreamProvider& stream_provider_request,
+ int64 session_id,
+ string device_id) =>
+ (media.mojom.OutputDeviceStatus state,
+ media.mojom.AudioParameters output_params,
+ string matched_device_id);
+};
« no previous file with comments | « content/common/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698