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

Side by Side Diff: mojo/services/media/control/interfaces/media_factory.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.media; 6 module mojo.media;
7 7
8 import "mojo/services/media/common/interfaces/media_types.mojom"; 8 import "mojo/services/media/common/interfaces/media_types.mojom";
9 import "mojo/services/media/control/interfaces/media_player.mojom"; 9 import "mojo/services/media/control/interfaces/media_player.mojom";
10 import "mojo/services/media/control/interfaces/media_sink.mojom"; 10 import "mojo/services/media/control/interfaces/media_sink.mojom";
11 import "mojo/services/media/control/interfaces/media_source.mojom"; 11 import "mojo/services/media/control/interfaces/media_source.mojom";
12 12
13 // Exposed by the factory service to create media-related agents. 13 // Exposed by the factory service to create media-related agents.
14 [ServiceName="mojo::media::MediaFactory"] 14 [ServiceName="mojo::media::MediaFactory"]
15 interface MediaFactory { 15 interface MediaFactory {
16 // Creates a player. 16 // Creates a player.
17 // TODO(dalesat): Add means of specifying destinations. 17 // TODO(dalesat): Add means of specifying destinations.
18 CreatePlayer(string origin_url, MediaPlayer& player); 18 CreatePlayer(string origin_url, MediaPlayer& player);
19 19
20 // Creates a source. If allowed_media_types is supplied, conversions will be 20 // Creates a source. If allowed_media_types is supplied, conversions will be
21 // added to each stream as needed to make the media type of the stream match 21 // added to each stream as needed to make the media type of the stream match
22 // one of the allowed types. If a stream cannot be converted to one of the 22 // one of the allowed types. If a stream cannot be converted to one of the
23 // allowed types, its media type will have the scheme NONE, and the stream 23 // allowed types, its media type will have the scheme NONE, and the stream
24 // will not be usable. 24 // will not be usable.
25 CreateSource( 25 CreateSource(string origin_url, array<MediaTypeSet>? allowed_media_types, Medi aSource& source);
26 string origin_url,
27 array<MediaTypeSet>? allowed_media_types,
28 MediaSource& source);
29 26
30 // Creates a sink. Conversions are added to the pipeline as appropriate to 27 // Creates a sink. Conversions are added to the pipeline as appropriate to
31 // convert the indicated media type to a type compatible with the 28 // convert the indicated media type to a type compatible with the
32 // destination. 29 // destination.
33 CreateSink(string destination_url, MediaType media_type, MediaSink& sink); 30 CreateSink(string destination_url, MediaType media_type, MediaSink& sink);
34 }; 31 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698