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

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: Created 3 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.h
diff --git a/chrome/browser/media/router/media_router.h b/chrome/browser/media/router/media_router.h
index 0f8fd4b7386f322a16b2950c04efea0b576f99e2..441a18d4c05ffc0a75896ebe051d687bcdbd2477 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -189,6 +189,20 @@ class MediaRouter : public KeyedService {
// there is a change to the media routes, subclass MediaRoutesObserver.
virtual std::vector<MediaRoute> GetCurrentRoutes() const = 0;
+ // Register |route| associated with |presentation_id| with this MediaRouter.
imcheng 2017/03/08 20:06:35 Registers
zhaobin 2017/03/09 00:34:27 Code removed.
+ virtual void RegisterPresentationRoute(const std::string& presentation_id,
+ const MediaRoute& route) = 0;
+
+ // Unregister media route associated with |presentation_id| with this
imcheng 2017/03/08 20:06:35 Unregisters
zhaobin 2017/03/09 00:34:27 Code removed.
+ // MediaRouter.
+ virtual void UnregisterPresentationRoute(
+ const std::string& presentation_id) = 0;
+
+ // Returns underlying media route associated with |presentation_id|. Returns
imcheng 2017/03/08 20:06:35 s/underlying/the s/media route/MediaRoute
zhaobin 2017/03/09 00:34:27 Done.
+ // 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;
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router_base.h » ('j') | chrome/browser/media/router/media_router_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698