| Index: chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h
|
| diff --git a/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h b/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h
|
| index 62c193a7e573a96bfd468b33b853772436979afa..85168eef5d0d18429108512c83db420fef47c82f 100644
|
| --- a/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h
|
| +++ b/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h
|
| @@ -39,7 +39,9 @@ class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler {
|
| // Methods to update the status displayed by the dialog.
|
| void UpdateSinks(const std::vector<MediaSinkWithCastModes>& sinks);
|
| void UpdateRoutes(const std::vector<MediaRoute>& routes,
|
| - const std::vector<MediaRoute::Id>& joinable_route_ids);
|
| + const std::vector<MediaRoute::Id>& joinable_route_ids,
|
| + const std::unordered_map<MediaRoute::Id, MediaCastMode>&
|
| + current_cast_modes);
|
| void UpdateCastModes(const CastModeSet& cast_modes,
|
| const std::string& source_host);
|
| void OnCreateRouteResponseReceived(const MediaSink::Id& sink_id,
|
| @@ -102,7 +104,9 @@ class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler {
|
| // passed to WebUI.
|
| std::unique_ptr<base::ListValue> RoutesToValue(
|
| const std::vector<MediaRoute>& routes,
|
| - const std::vector<MediaRoute::Id>& joinable_route_ids) const;
|
| + const std::vector<MediaRoute::Id>& joinable_route_ids,
|
| + const std::unordered_map<MediaRoute::Id, MediaCastMode>&
|
| + current_cast_modes) const;
|
|
|
| // Retrieve the account info for email and domain of signed in users. This is
|
| // used when updating sinks to determine if identity should be displayed.
|
|
|