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

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 Derek's comments 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
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..a417d8b94b5d37733deaa4a86befd0b759d5677b 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 const std::vector<MediaRoute>& GetCurrentRoutes() const = 0;
+
private:
friend class IssuesObserver;
friend class MediaSinksObserver;

Powered by Google App Engine
This is Rietveld 408576698