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

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

Issue 2731043002: [Media Router] Add a presentation id to MediaRoute mapping in the MR (Closed)
Patch Set: resolve code review comments from Mark Created 3 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.h
diff --git a/chrome/browser/media/router/media_router.h b/chrome/browser/media/router/media_router.h
index 0f8fd4b7386f322a16b2950c04efea0b576f99e2..d951200ad02aa958c2f9f53955dd4fc86529999e 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -189,6 +189,11 @@ class MediaRouter : public KeyedService {
// there is a change to the media routes, subclass MediaRoutesObserver.
virtual std::vector<MediaRoute> GetCurrentRoutes() const = 0;
+ // Returns the MediaRoute associated with |presentation_id|. Returns nullptr
+ // if no such media route exists.
+ virtual const MediaRoute* GetPresentationRoute(
+ const std::string& presentation_id) const = 0;
+
private:
friend class IssuesObserver;
friend class MediaSinksObserver;

Powered by Google App Engine
This is Rietveld 408576698