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

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

Issue 1693963003: Pass origin to StartObservingMediaSinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready for Review Created 4 years, 10 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 84e25577ee9e14abe13f6abf06777b5a949b9815..17b6bb1d412470c89afed964382b069a7924a424 100644
--- a/chrome/browser/media/router/media_router_mojo_impl.h
+++ b/chrome/browser/media/router/media_router_mojo_impl.h
@@ -168,6 +168,8 @@ class MediaRouterMojoImpl : public MediaRouterBase,
// True if cached result is available.
bool has_cached_result = false;
+ GURL origin;
+
// Cached list of sinks for the query, if |has_cached_result| is true.
// Empty otherwise.
std::vector<MediaSink> cached_sink_list;
@@ -255,7 +257,8 @@ class MediaRouterMojoImpl : public MediaRouterBase,
const SendRouteMessageCallback& callback);
void DoListenForRouteMessages(const MediaRoute::Id& route_id);
void DoStopListeningForRouteMessages(const MediaRoute::Id& route_id);
- void DoStartObservingMediaSinks(const MediaSource::Id& source_id);
+ void DoStartObservingMediaSinks(const MediaSource::Id& source_id,
+ const GURL& origin);
void DoStopObservingMediaSinks(const MediaSource::Id& source_id);
void DoStartObservingMediaRoutes(const MediaSource::Id& source_id);
void DoStopObservingMediaRoutes(const MediaSource::Id& source_id);

Powered by Google App Engine
This is Rietveld 408576698