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

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

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: resolve code review comments from Derek and Mark Created 3 years, 9 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
« no previous file with comments | « chrome/browser/media/router/media_sink.cc ('k') | chrome/browser/media/router/mojo/media_router.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37fc064748de40d2a68f17ebec05798d2c3a4871..345bfb5d0534d36aeda455d905d0da68190283ef 100644
--- a/chrome/browser/media/router/mojo/media_router.mojom
+++ b/chrome/browser/media/router/mojo/media_router.mojom
@@ -5,7 +5,9 @@
module media_router.mojom;
import "mojo/common/time.mojom";
+import "net/interfaces/ip_address.mojom";
import "url/mojo/origin.mojom";
+import "url/mojo/url.mojom";
// Represents an output sink to which media can be routed.
struct MediaSink {
@@ -27,6 +29,45 @@ struct MediaSink {
string? domain;
// The type of icon to show in the UI for this media sink.
IconType icon_type;
+ // This is currently only set by MediaRouter in OnSinksDiscovered().
+ MediaSinkExtraData? extra_data;
+};
+
+union MediaSinkExtraData {
+ DialMediaSink dial_media_sink;
+ CastMediaSink cast_media_sink;
+};
+
+struct DialMediaSink {
+ net.interfaces.IPAddress ip_address;
+
+ // Model name of the sink, if it represents a physical device.
+ string model_name;
+
+ // Used for DIAL launch
+ url.mojom.Url app_url;
+};
+
+struct CastMediaSink {
+ net.interfaces.IPAddress ip_address;
+
+ // Model name of the sink, if it represents a physical device.
+ string model_name;
+
+ // A bit vector representing capabilities of the sink. Meaning of capacity
+ // value for each bit:
+ // NONE: 0,
+ // VIDEO_OUT: 1 << 0,
+ // VIDEO_IN: 1 << 1,
+ // AUDIO_OUT: 1 << 2,
+ // AUDIO_IN: 1 << 3,
+ // DEV_MODE: 1 << 4,
+ // MULTIZONE_GROUP: 1 << 5
+ uint8 capabilities;
+
+ // ID of Cast channel opened by Media Router. The ID is defined by the
+ // chrome.cast.channel API.
+ int32 cast_channel_id;
};
// Should be kept in sync with media_route.h.
« no previous file with comments | « chrome/browser/media/router/media_sink.cc ('k') | chrome/browser/media/router/mojo/media_router.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698