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

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

Issue 2627463003: Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Add missing dependency for extensions_renderer_resources target 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..37fc064748de40d2a68f17ebec05798d2c3a4871 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/origin.mojom";
// Represents an output sink to which media can be routed.
struct MediaSink {
@@ -170,7 +171,7 @@ interface MediaRouteProvider {
CreateRoute(string media_source,
string sink_id,
string original_presentation_id,
- string origin,
+ url.mojom.Origin origin,
int32 tab_id,
mojo.common.mojom.TimeDelta timeout,
bool incognito) =>
@@ -198,7 +199,7 @@ interface MediaRouteProvider {
// occurred.
JoinRoute(string media_source,
string presentation_id,
- string origin,
+ url.mojom.Origin origin,
int32 tab_id,
mojo.common.mojom.TimeDelta timeout,
bool incognito) =>
@@ -232,7 +233,7 @@ interface MediaRouteProvider {
ConnectRouteByRouteId(string media_source,
string route_id,
string presentation_id,
- string origin,
+ url.mojom.Origin origin,
int32 tab_id,
mojo.common.mojom.TimeDelta timeout,
bool incognito) =>
@@ -363,7 +364,7 @@ interface MediaRouter {
// compatible with |media_source|. The result is only valid for |origins|. If
// |origins| is empty, the result is valid for any origin.
OnSinksReceived(string media_source, array<MediaSink> sinks,
- array<string> origins);
+ array<url.mojom.Origin> origins);
// Called when issues are reported for media routes.
OnIssue(Issue issue);
« no previous file with comments | « chrome/browser/media/router/mock_media_router.h ('k') | chrome/browser/media/router/mojo/media_router_mojo_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698