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

Unified Diff: chrome/browser/media/router/mojo/media_router.mojom

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: add TypedMediaSink class Created 3 years, 10 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/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".

Powered by Google App Engine
This is Rietveld 408576698