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

Unified Diff: chrome/browser/media/router/mojo/media_router.mojom

Issue 2138013003: media::mojom::Remoter and CastRemotingConnector/Sender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split-out some interfaces in prep for landing multi-part changes. Created 4 years, 5 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: chrome/browser/media/router/mojo/media_router.mojom
diff --git a/chrome/browser/media/router/mojo/media_router.mojom b/chrome/browser/media/router/mojo/media_router.mojom
index bbf4a3b5c53ee0779987f7cc8c78238c84c620cf..0e6165ce3cfe2db243ad039d3d6a87f029b6c72d 100644
--- a/chrome/browser/media/router/mojo/media_router.mojom
+++ b/chrome/browser/media/router/mojo/media_router.mojom
@@ -4,6 +4,8 @@
module media_router.interfaces;
+import "chrome/browser/media/router/mojo/media_remoter.mojom";
+
// Represents an output sink to which media can be routed.
struct MediaSink {
enum IconType {
@@ -380,5 +382,12 @@ interface MediaRouter {
// |messages|: A non-empty list of messages received.
OnRouteMessagesReceived(string route_id,
array<RouteMessage> messages);
+
+ // Creates a MediaRemotingSession that manages content remoting from the given
+ // |media_source|. Only one session can be created for the same source; and an
+ // attempt to create a second before MediaRemotingSession.Terminate() is
+ // called will cause a null handle to be returned.
+ CreateRemotingSession(string media_source, MediaRemotingProvider provider) =>
+ (MediaRemotingSession? remoting_session);
};

Powered by Google App Engine
This is Rietveld 408576698