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

Unified Diff: chrome/browser/media/router/media_router_mojo_impl.h

Issue 1784533004: [Media Router] Add origins to sink query results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test 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/media/router/media_router_mojo_impl.h
diff --git a/chrome/browser/media/router/media_router_mojo_impl.h b/chrome/browser/media/router/media_router_mojo_impl.h
index bfe616a1a4e3e405755284d432c28f98cbdcab4f..0cc2eafb186a527d76bc271afdaeaef5203c3513 100644
--- a/chrome/browser/media/router/media_router_mojo_impl.h
+++ b/chrome/browser/media/router/media_router_mojo_impl.h
@@ -154,6 +154,7 @@ class MediaRouterMojoImpl : public MediaRouterBase,
// Cached list of sinks for the query, if |has_cached_result| is true.
// Empty otherwise.
std::vector<MediaSink> cached_sink_list;
+ std::vector<GURL> origins;
base::ObserverList<MediaSinksObserver> observers;
private:
@@ -267,7 +268,8 @@ class MediaRouterMojoImpl : public MediaRouterBase,
callback) override;
void OnIssue(interfaces::IssuePtr issue) override;
void OnSinksReceived(const mojo::String& media_source,
- mojo::Array<interfaces::MediaSinkPtr> sinks) override;
+ mojo::Array<interfaces::MediaSinkPtr> sinks,
+ mojo::Array<mojo::String> origins) override;
void OnRoutesUpdated(mojo::Array<interfaces::MediaRoutePtr> routes,
const mojo::String& media_source,
mojo::Array<mojo::String> joinable_route_ids) override;
« no previous file with comments | « chrome/browser/media/router/media_router.mojom ('k') | chrome/browser/media/router/media_router_mojo_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698