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

Side by Side Diff: chrome/browser/media/router/media_routes_observer.h

Issue 2310753002: Media Remoting: Data/Control plumbing between renderer and Media Router. (Closed)
Patch Set: Just a REBASE on ToT before commit. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 // updated with the context of the |source_id|. This will return a list of 31 // updated with the context of the |source_id|. This will return a list of
32 // |routes| and a list of |joinable_route_ids|. A route is joinable only if 32 // |routes| and a list of |joinable_route_ids|. A route is joinable only if
33 // it is joinable in the context of the |source_id|. 33 // it is joinable in the context of the |source_id|.
34 // Implementations may not perform operations that modify the Media Router's 34 // Implementations may not perform operations that modify the Media Router's
35 // observer list. In particular, invoking this observer's destructor within 35 // observer list. In particular, invoking this observer's destructor within
36 // OnRoutesUpdated will result in undefined behavior. 36 // OnRoutesUpdated will result in undefined behavior.
37 virtual void OnRoutesUpdated( 37 virtual void OnRoutesUpdated(
38 const std::vector<MediaRoute>& routes, 38 const std::vector<MediaRoute>& routes,
39 const std::vector<MediaRoute::Id>& joinable_route_ids) {} 39 const std::vector<MediaRoute::Id>& joinable_route_ids) {}
40 40
41 MediaRouter* router() const { return router_; }
41 const MediaSource::Id source_id() const { return source_id_; } 42 const MediaSource::Id source_id() const { return source_id_; }
42 43
43 private: 44 private:
44 MediaRouter* const router_; 45 MediaRouter* const router_;
45 const MediaSource::Id source_id_; 46 const MediaSource::Id source_id_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(MediaRoutesObserver); 48 DISALLOW_COPY_AND_ASSIGN(MediaRoutesObserver);
48 }; 49 };
49 50
50 } // namespace media_router 51 } // namespace media_router
51 52
52 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_ 53 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698