Chromium Code Reviews| 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; |