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

Unified Diff: chrome/common/media_router/mojo/media_router.mojom

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Fix unittests. Created 3 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/common/media_router/mojo/media_router.mojom
diff --git a/chrome/common/media_router/mojo/media_router.mojom b/chrome/common/media_router/mojo/media_router.mojom
index d339c5c7931f13aef17d31cd66ad78e49a299266..955ba89009a779dad14b41a04f86eb86800609a7 100644
--- a/chrome/common/media_router/mojo/media_router.mojom
+++ b/chrome/common/media_router/mojo/media_router.mojom
@@ -6,6 +6,7 @@ module media_router.mojom;
import "chrome/common/media_router/mojo/media_controller.mojom";
import "chrome/common/media_router/mojo/media_status.mojom";
+import "media/mojo/interfaces/mirror_service_remoting.mojom";
import "mojo/common/time.mojom";
import "net/interfaces/ip_address.mojom";
import "url/mojo/origin.mojom";
@@ -471,4 +472,11 @@ interface MediaRouter {
// |messages|: A non-empty list of messages received.
OnRouteMessagesReceived(string route_id,
array<RouteMessage> messages);
+
+ // Called when a MediaRemoter for a tab with |tab_id| is started. |remoter|
+ // can be used to access the MediaRemoter to control a media remoting session
+ // and send RPC messages to the remote device. |remoting_source| is bound to
+ // receive the updates/messages from MediaRemoter.
+ OnMediaRemoterCreated(int32 tab_id, media.mojom.MirrorServiceRemoter remoter,
+ media.mojom.MirrorServiceRemotingSource& remoting_source);
};

Powered by Google App Engine
This is Rietveld 408576698