Rename GetIconID to GetIconId
[chromium-blink-merge.git] / chrome / browser / media / router / media_routes_observer.h
blobc9a140fa12c7dd1d42b762ea6f5f3013d2f0a487
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.
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_
8 #include <vector>
10 #include "base/macros.h"
11 #include "chrome/browser/media/router/media_route.h"
13 namespace media_router {
15 class MediaRouter;
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();
24 // Invoked when the list of routes and their associated sinks have been
25 // updated.
26 // Implementations may not perform operations that modify the Media Router's
27 // observer list. In particular, invoking this observer's destructor within
28 // OnRoutesUpdated will result in undefined behavior.
29 virtual void OnRoutesUpdated(const std::vector<MediaRoute>& routes) {}
31 private:
32 MediaRouter* router_;
34 DISALLOW_COPY_AND_ASSIGN(MediaRoutesObserver);
37 } // namespace media_router
39 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_