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

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

Issue 1143603004: [Media Router] Add Media Router Mojo impl code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Xiaohan's comments Created 5 years, 7 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_routes_observer.h
diff --git a/chrome/browser/media/router/media_routes_observer.h b/chrome/browser/media/router/media_routes_observer.h
index b4faa60ab0b6ce2519f0336e4edfc960054cfc92..c9a140fa12c7dd1d42b762ea6f5f3013d2f0a487 100644
--- a/chrome/browser/media/router/media_routes_observer.h
+++ b/chrome/browser/media/router/media_routes_observer.h
@@ -21,9 +21,11 @@ class MediaRoutesObserver {
explicit MediaRoutesObserver(MediaRouter* router);
virtual ~MediaRoutesObserver();
- // This function is invoked when the list of routes and their associated
- // sinks have been updated. Routes included in the list are created either
- // locally or remotely.
+ // Invoked when the list of routes and their associated sinks have been
+ // updated.
+ // Implementations may not perform operations that modify the Media Router's
+ // observer list. In particular, invoking this observer's destructor within
+ // OnRoutesUpdated will result in undefined behavior.
virtual void OnRoutesUpdated(const std::vector<MediaRoute>& routes) {}
private:
« no previous file with comments | « chrome/browser/media/router/media_router_type_converters.cc ('k') | chrome/browser/media/router/media_routes_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698