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

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

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: add url.mojom to media_router.mojoms JsResources 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..f9072db62cdbc65b1512e91dbf3e3649d0c7084a 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
imcheng 2017/02/08 01:28:09 Replace the "Used for XXX" with a description of w
zhaobin 2017/02/09 00:13:52 Done.
+ 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.

Powered by Google App Engine
This is Rietveld 408576698