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..953001c1347c3c0de6b520e948f35cd501708106 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; |
+ |
+ // Used for feedback |
+ string? model_name; |
+ |
+ MediaSinkExtraData? extra_data; |
+}; |
+ |
+union MediaSinkExtraData { |
+ DialMediaSink? dial_media_sink; |
+ CastMediaSink? cast_media_sink; |
dcheng
2017/02/05 09:23:00
? shouldn't be required on lines 38 and 39 (it's i
zhaobin
2017/02/06 19:37:10
Done.
|
+}; |
+ |
+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. |