| 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_UI_WEBUI_MEDIA_ROUTER_QUERY_RESULT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_QUERY_RESULT_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_QUERY_RESULT_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_QUERY_RESULT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <unordered_set> | 11 #include <unordered_set> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "chrome/browser/media/router/media_routes_observer.h" | 17 #include "chrome/browser/media/router/media_routes_observer.h" |
| 18 #include "chrome/browser/media/router/media_sink.h" | 18 #include "chrome/browser/media/router/media_sink.h" |
| 19 #include "chrome/browser/media/router/media_source.h" | 19 #include "chrome/browser/media/router/media_source.h" |
| 20 #include "chrome/browser/ui/webui/media_router/cast_modes_with_media_sources.h" | 20 #include "chrome/browser/ui/webui/media_router/cast_modes_with_media_sources.h" |
| 21 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h" | 21 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h" |
| 22 #include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h" | 22 #include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h" |
| 23 | 23 |
| 24 class GURL; | 24 class GURL; |
| 25 | 25 |
| 26 namespace media_router { | 26 namespace media_router { |
| 27 | 27 |
| 28 class MediaRouter; | 28 class MediaRouter; |
| 29 class MediaSinksObserver; | 29 class MediaSinksObserver; |
| 30 struct RoutesQueryResult; | |
| 31 struct SinksQueryResult; | |
| 32 | 30 |
| 33 // The Media Router dialog allows the user to initiate casting using one of | 31 // The Media Router dialog allows the user to initiate casting using one of |
| 34 // several actions (each represented by a cast mode). Each cast mode is | 32 // several actions (each represented by a cast mode). Each cast mode is |
| 35 // associated with a vector of media sources. This class allows the dialog to | 33 // associated with a vector of media sources. This class allows the dialog to |
| 36 // receive lists of MediaSinks compatible with the cast modes available through | 34 // receive lists of MediaSinks compatible with the cast modes available through |
| 37 // the dialog. | 35 // the dialog. |
| 38 // | 36 // |
| 39 // Typical use: | 37 // Typical use: |
| 40 // | 38 // |
| 41 // GURL origin("https://origin.com"); | 39 // GURL origin("https://origin.com"); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 170 |
| 173 // Not owned by this object. | 171 // Not owned by this object. |
| 174 MediaRouter* const router_; | 172 MediaRouter* const router_; |
| 175 | 173 |
| 176 DISALLOW_COPY_AND_ASSIGN(QueryResultManager); | 174 DISALLOW_COPY_AND_ASSIGN(QueryResultManager); |
| 177 }; | 175 }; |
| 178 | 176 |
| 179 } // namespace media_router | 177 } // namespace media_router |
| 180 | 178 |
| 181 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_QUERY_RESULT_MANAGER_H_ | 179 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_QUERY_RESULT_MANAGER_H_ |
| OLD | NEW |