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

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 Derek 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..ba6042d3a35adc25240aed9994077ec6b26cc82e 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -189,6 +189,17 @@ 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;
+
+ // Finds an existing route with id equals to |route_id| and sets its
+ // |presentation_id| field to |presentation_id|. No op if such route does not
+ // exist.
+ virtual void SetPresentationId(const MediaRoute::Id& route_id,
+ const std::string& presentation_id) = 0;
+
private:
friend class IssuesObserver;
friend class MediaSinksObserver;

Powered by Google App Engine
This is Rietveld 408576698