| OLD | NEW |
| 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" |
| 11 #include "chrome/browser/media/router/media_route.h" | 11 #include "chrome/common/media_router/media_route.h" |
| 12 | 12 |
| 13 namespace media_router { | 13 namespace media_router { |
| 14 | 14 |
| 15 class MediaRouter; | 15 class MediaRouter; |
| 16 | 16 |
| 17 // Base class for observing when the set of MediaRoutes and their associated | 17 // Base class for observing when the set of MediaRoutes and their associated |
| 18 // MediaSinks have been updated. When an object is instantiated with a | 18 // MediaSinks have been updated. When an object is instantiated with a |
| 19 // |source_id|, the observer expects that |routes| reported by | 19 // |source_id|, the observer expects that |routes| reported by |
| 20 // |OnRoutesUpdated| that match the route IDs contained in the | 20 // |OnRoutesUpdated| that match the route IDs contained in the |
| 21 // |joinable_route_ids| can be connected joined by the source. If no | 21 // |joinable_route_ids| can be connected joined by the source. If no |
| (...skipping 22 matching lines...) Expand all Loading... |
| 44 private: | 44 private: |
| 45 MediaRouter* const router_; | 45 MediaRouter* const router_; |
| 46 const MediaSource::Id source_id_; | 46 const MediaSource::Id source_id_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(MediaRoutesObserver); | 48 DISALLOW_COPY_AND_ASSIGN(MediaRoutesObserver); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace media_router | 51 } // namespace media_router |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_ | 53 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTES_OBSERVER_H_ |
| OLD | NEW |