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

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

Issue 1076973002: [Media Router] Reland: MediaRouter interfaces with stub implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
7
8 #include <vector>
9
10 #include "base/macros.h"
11 #include "chrome/browser/media/router/media_route.h"
12
13 namespace media_router {
14
15 class MediaRouter;
16
17 // Base class for observing when the set of MediaRoutes and their associated
18 // MediaSinks have been updated.
19 class MediaRoutesObserver {
20 public:
21 explicit MediaRoutesObserver(MediaRouter* router);
22 virtual ~MediaRoutesObserver();
23
24 // This function is invoked when the list of routes and their associated
25 // sinks have been updated. Routes included in the list are created either
26 // locally or remotely.
27 virtual void OnRoutesUpdated(const std::vector<MediaRoute>& routes) {}
28
29 private:
30 MediaRouter* router_;
31
32 DISALLOW_COPY_AND_ASSIGN(MediaRoutesObserver);
33 };
34
35 } // namespace media_router
36
37 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_router_impl_factory.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