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 e26170d891ef309a70ee3b90f3a0097639aae6cb..bed73aeecbd6f3e8bc5930f0bbc229b8c2850083 100644 |
--- a/chrome/browser/media/router/mojo/media_router.mojom |
+++ b/chrome/browser/media/router/mojo/media_router.mojom |
@@ -5,6 +5,7 @@ |
module media_router.mojom; |
import "mojo/common/time.mojom"; |
+import "url/mojo/url.mojom"; |
// Represents an output sink to which media can be routed. |
struct MediaSink { |
@@ -26,6 +27,35 @@ struct MediaSink { |
string? domain; |
// The type of icon to show in the UI for this media sink. |
IconType icon_type; |
+ |
+ // Model name of the sink, if it represents a physical device. |
+ string? model_name; |
+ |
+ MediaSinkExtraData? extra_data; |
+}; |
+ |
+union MediaSinkExtraData { |
+ DialMediaSink dial_media_sink; |
+ CastMediaSink cast_media_sink; |
+}; |
+ |
+struct DialMediaSink { |
+ // Used for feedback |
+ string ip_address; |
+ |
+ // Used for DIAL launch |
+ url.mojom.Url app_url; |
+}; |
+ |
+struct CastMediaSink { |
+ int32 capabilities; |
+ |
+ // Used for feedback |
+ string ip_address; |
+ |
+ // ID of cast channel opened by Media Router. The ID can be |
+ // used to send call chrome.cast.channel.send. |
+ int32 cast_channel_id; |
}; |
// Should be kept in sync with media_route.h. |