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..8e16794a7ecba649d878479de4ca1eb6f9ae00c9 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 { |
@@ -28,6 +29,36 @@ struct MediaSink { |
IconType icon_type; |
}; |
+// Represents a sink discovered by MediaSinkService. |
imcheng
2017/02/11 01:00:21
Represents a sink discovered by Media Router, whic
zhaobin
2017/02/14 02:08:49
Done.
|
+struct TypedMediaSink { |
+ MediaSink sink; |
+ |
+ string ip_address; |
+ |
+ // 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 DIAL launch |
+ url.mojom.Url app_url; |
+}; |
+ |
+struct CastMediaSink { |
+ int32 capabilities; |
+ |
+ // 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. |
struct MediaRoute { |
// The ID of this media route, e.g. "r_PR1O_blkC9dsKp-tb1ti8qurOo". |