summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/resources
diff options
context:
space:
mode:
authorimcheng <imcheng@chromium.org>2015-10-26 16:38:27 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-26 23:40:19 +0000
commitf032b3bd120a1d666bbb62eab8fd461cf91bd32e (patch)
tree96ccf79616e996a77485afde961fc4df4bcfe86f /extensions/renderer/resources
parent988941d6e003d7a1585da7698a41669cc229d9e3 (diff)
downloadchromium_src-f032b3bd120a1d666bbb62eab8fd461cf91bd32e.zip
chromium_src-f032b3bd120a1d666bbb62eab8fd461cf91bd32e.tar.gz
chromium_src-f032b3bd120a1d666bbb62eab8fd461cf91bd32e.tar.bz2
[Media Router] Implements deferred media sink queries.
NOTE: taking over mfoltz's original patch at crrev.com/1411003002 Original patch descritpion: Implements deferred media sink queries when no sinks are available. This is a partial implementation of the proposed design for the most common case; it does not yet update the MediaSinksObserver API. There will be no change in behavior until the MRPM side is updated to send the sinks status. BUG=530702 Review URL: https://codereview.chromium.org/1421003003 Cr-Commit-Position: refs/heads/master@{#356180}
Diffstat (limited to 'extensions/renderer/resources')
-rw-r--r--extensions/renderer/resources/media_router_bindings.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/extensions/renderer/resources/media_router_bindings.js b/extensions/renderer/resources/media_router_bindings.js
index 5d875c87..c877fd4 100644
--- a/extensions/renderer/resources/media_router_bindings.js
+++ b/extensions/renderer/resources/media_router_bindings.js
@@ -264,8 +264,15 @@ define('media_router_bindings', [
};
/**
+ * Called by the provider manager when sink availability has been updated.
+ * @param {!MediaRouter.SinkAvailability} The new sink availability.
+ */
+ MediaRouter.prototype.onSinkAvailabilityUpdated = function(availability) {
+ this.service_.onSinkAvailabilityUpdated(availability);
+ };
+
+ /**
* Object containing callbacks set by the provider manager.
- * TODO(mfoltz): Better named ProviderManagerDelegate?
*
* @constructor
* @struct
@@ -361,7 +368,6 @@ define('media_router_bindings', [
/*
* Sets the callback handler used to invoke methods in the provider manager.
*
- * TODO(mfoltz): Rename to something more explicit?
* @param {!MediaRouterHandlers} handlers
*/
MediaRouteProvider.prototype.setHandlers = function(handlers) {