| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CAST_MODES_WITH_MEDIA_SOURCES_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_CAST_MODES_WITH_MEDIA_SOURCES_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_CAST_MODES_WITH_MEDIA_SOURCES_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_CAST_MODES_WITH_MEDIA_SOURCES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <unordered_set> | 9 #include <unordered_set> |
| 10 | 10 |
| 11 #include "chrome/browser/media/router/media_source.h" | |
| 12 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h" | 11 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h" |
| 12 #include "chrome/common/media_router/media_source.h" |
| 13 | 13 |
| 14 namespace media_router { | 14 namespace media_router { |
| 15 | 15 |
| 16 // Contains information on cast modes and the sources associated with them. | 16 // Contains information on cast modes and the sources associated with them. |
| 17 // Each cast mode contained has at least one source. | 17 // Each cast mode contained has at least one source. |
| 18 class CastModesWithMediaSources { | 18 class CastModesWithMediaSources { |
| 19 public: | 19 public: |
| 20 CastModesWithMediaSources(); | 20 CastModesWithMediaSources(); |
| 21 CastModesWithMediaSources(CastModesWithMediaSources&& other); | 21 CastModesWithMediaSources(CastModesWithMediaSources&& other); |
| 22 ~CastModesWithMediaSources(); | 22 ~CastModesWithMediaSources(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 40 private: | 40 private: |
| 41 std::map<MediaCastMode, std::unordered_set<MediaSource, MediaSource::Hash>> | 41 std::map<MediaCastMode, std::unordered_set<MediaSource, MediaSource::Hash>> |
| 42 cast_modes_; | 42 cast_modes_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(CastModesWithMediaSources); | 44 DISALLOW_COPY_AND_ASSIGN(CastModesWithMediaSources); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace media_router | 47 } // namespace media_router |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_CAST_MODES_WITH_MEDIA_SOURCES_H_ | 49 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_CAST_MODES_WITH_MEDIA_SOURCES_H_ |
| OLD | NEW |