Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 "chrome/browser/media/router/media_route.h" | |
| 11 #include "chrome/browser/media/router/media_sink.h" | |
| 12 | |
| 13 namespace media_router { | |
| 14 | |
| 15 struct RoutesQueryResult { | |
| 16 RoutesQueryResult(); | |
|
Kevin M
2015/03/26 20:50:14
Is this needed? Default ctor and dtor should suffi
imcheng
2015/03/26 23:33:13
Unfortunately it will not compile without explicit
| |
| 17 ~RoutesQueryResult(); | |
| 18 | |
| 19 std::vector<MediaRoute> routes; | |
| 20 std::vector<MediaSink> sinks; | |
| 21 }; | |
| 22 | |
| 23 // Interface for observing when the set of MediaRoutes and their associated | |
| 24 // MediaSinks have been updated. | |
| 25 class MediaRoutesObserver { | |
| 26 public: | |
| 27 virtual ~MediaRoutesObserver() {} | |
| 28 | |
| 29 // This function is invoked when the list of routes and their associated | |
| 30 // sinks have been updated. | |
| 31 virtual void OnRoutesUpdated(const RoutesQueryResult& result) = 0; | |
| 32 }; | |
| 33 | |
| 34 } // namespace media_router | |
| 35 | |
| 36 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_ | |
| OLD | NEW |