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

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

Issue 2540773005: Add GetCurrentRoutes() to MediaRouter API, ensure dialog has routes at init (Closed)
Patch Set: Address Mark's comment Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a550715b3ed37422665cd77bd25faaed7cf579ac..f72bb59cde0bb1c66257b1a4aa7e521b560feb13 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -181,6 +181,10 @@ class MediaRouter : public KeyedService {
// This will terminate all incognito media routes.
virtual void OnIncognitoProfileShutdown() = 0;
+ // Returns the media routes that currently exist. To get notified whenever
+ // there is a change to the media routes, subclass MediaRoutesObserver.
+ virtual std::vector<MediaRoute> GetCurrentRoutes() 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698