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

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

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_ui.h
diff --git a/chrome/browser/ui/webui/media_router/media_router_ui.h b/chrome/browser/ui/webui/media_router/media_router_ui.h
index 478f12ae64b8e972f08650f58dd6992bb7be4c6c..e2081595b12eae77886bd648c2fdd43ee5d35be4 100644
--- a/chrome/browser/ui/webui/media_router/media_router_ui.h
+++ b/chrome/browser/ui/webui/media_router/media_router_ui.h
@@ -116,6 +116,10 @@ class MediaRouterUI : public ConstrainedWebDialogUI,
// Calls MediaRouter to clear the given issue.
void ClearIssue(const Issue::Id& issue_id);
+ // Calls MediaRouter to search route providers for |sink_id| with the source
+ // that is currently associated with |cast_mode|.
+ void SearchProviders(const MediaSink::Id& sink_id, MediaCastMode cast_mode);
+
// Returns the hostname of the default source's parent frame URL.
std::string GetPresentationRequestSourceName() const;
std::string GetTruncatedPresentationRequestSourceName() const;
@@ -188,6 +192,11 @@ class MediaRouterUI : public ConstrainedWebDialogUI,
// QueryResultManager::Observer
void OnResultsUpdated(
const std::vector<MediaSinkWithCastModes>& sinks) override;
+ void OnSearchResultsReceived(
+ const MediaSink::Id& sink_id,
+ const std::vector<MediaSinkWithCastModes>& sinks) override;
+
+ void SortAndUpdateSinks();
// Called by |issues_observer_| when the top issue has changed.
// If the UI is already initialized, notifies |handler_| to update the UI.
@@ -196,7 +205,7 @@ class MediaRouterUI : public ConstrainedWebDialogUI,
// Called by |routes_observer_| when the set of active routes has changed.
void OnRoutesUpdated(const std::vector<MediaRoute>& routes,
- const std::vector<MediaRoute::Id>& joinable_route_ids);
+ const std::vector<MediaRoute::Id>& joinable_route_ids);
// Callback passed to MediaRouter to receive response to route creation
// requests.

Powered by Google App Engine
This is Rietveld 408576698