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

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

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Rebased again. 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 ce99ec3e984a61335313a04af0c8b5c00a1563de..5f53bc1e50757b17af020ec37c9f8ba7be9282cc 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";
@@ -474,4 +475,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);
};
« no previous file with comments | « chrome/common/media_router/mojo/BUILD.gn ('k') | chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698