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

Unified Diff: extensions/renderer/resources/media_router_bindings.js

Issue 1415103006: Non-Local Join for Media Router and Presentation API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review Fixes 2 Created 5 years 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: extensions/renderer/resources/media_router_bindings.js
diff --git a/extensions/renderer/resources/media_router_bindings.js b/extensions/renderer/resources/media_router_bindings.js
index 6bc357d86668ef73eea193aad0b532620db53a74..33875a186a46ee3e72b89a9cd298c758e6bcf984 100644
--- a/extensions/renderer/resources/media_router_bindings.js
+++ b/extensions/renderer/resources/media_router_bindings.js
@@ -278,10 +278,15 @@ define('media_router_bindings', [
/**
* Called by the provider manager when the set of active routes
* has been updated.
+ * @param {!string} sourceUrn The sourUrn associated with this route query.
* @param {!Array<MediaRoute>} routes The active set of media routes.
+ * @param {!Array<string>} joinableRoutes The active set of joinable media
+ * routes.
*/
- MediaRouter.prototype.onRoutesUpdated = function(routes) {
- this.service_.onRoutesUpdated(routes.map(routeToMojo_));
+ MediaRouter.prototype.onRoutesUpdated =
+ function(sourceUrn, routes, joinableRouteIds) {
+ this.service_.onRoutesUpdated(
+ sourceUrn, routes.map(routeToMojo_), joinableRouteIds);
};
/**
@@ -577,17 +582,19 @@ define('media_router_bindings', [
/**
* Requests that the provider manager start sending information about active
* media routes to the Media Router.
+ * @param {!string} sourceUrn
*/
- MediaRouteProvider.prototype.startObservingMediaRoutes = function() {
- this.handlers_.startObservingMediaRoutes();
+ MediaRouteProvider.prototype.startObservingMediaRoutes = function(sourceUrn) {
+ this.handlers_.startObservingMediaRoutes(sourceUrn);
};
/**
* Requests that the provider manager stop sending information about active
* media routes to the Media Router.
+ * @param {!string} sourceUrn
*/
- MediaRouteProvider.prototype.stopObservingMediaRoutes = function() {
- this.handlers_.stopObservingMediaRoutes();
+ MediaRouteProvider.prototype.stopObservingMediaRoutes = function(sourceUrn) {
+ this.handlers_.stopObservingMediaRoutes(sourceUrn);
};
mediaRouter = new MediaRouter(connector.bindHandleToProxy(

Powered by Google App Engine
This is Rietveld 408576698