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

Unified Diff: chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h

Issue 2862393002: [Media Router] Force DEFAULT cast mode when starting presentations from content. (Closed)
Patch Set: Fix bug found by closure compiler Created 3 years, 7 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/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 db769a506d7ead8a35ad67f863151792c41eec4a..ef4030b5d1cf15adbb4208ee453a19e2eb1ef592 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
@@ -9,6 +9,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/optional.h"
#include "chrome/browser/ui/webui/media_router/media_cast_mode.h"
#include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h"
#include "chrome/common/media_router/issue.h"
@@ -44,8 +45,10 @@ class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler {
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);
+ // Overridden in tests.
+ virtual void UpdateCastModes(const CastModeSet& cast_modes,
+ const std::string& source_host,
+ base::Optional<MediaCastMode> forced_cast_mode);
void OnCreateRouteResponseReceived(const MediaSink::Id& sink_id,
const MediaRoute* route);
void ReturnSearchResult(const std::string& sink_id);

Powered by Google App Engine
This is Rietveld 408576698