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_ROUTE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/small_map.h" | 10 #include "base/containers/small_map.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // provider. empty otherwise. | 35 // provider. empty otherwise. |
36 // |for_display|: Set to true if this route should be displayed for | 36 // |for_display|: Set to true if this route should be displayed for |
37 // |media_sink_id| in UI. | 37 // |media_sink_id| in UI. |
38 MediaRoute(const MediaRoute::Id& media_route_id, | 38 MediaRoute(const MediaRoute::Id& media_route_id, |
39 const MediaSource& media_source, | 39 const MediaSource& media_source, |
40 const MediaSink::Id& media_sink_id, | 40 const MediaSink::Id& media_sink_id, |
41 const std::string& description, | 41 const std::string& description, |
42 bool is_local, | 42 bool is_local, |
43 const std::string& custom_controller_path, | 43 const std::string& custom_controller_path, |
44 bool for_display); | 44 bool for_display); |
| 45 MediaRoute(const MediaRoute& other); |
45 ~MediaRoute(); | 46 ~MediaRoute(); |
46 | 47 |
47 // The media route identifier. | 48 // The media route identifier. |
48 const MediaRoute::Id& media_route_id() const { return media_route_id_; } | 49 const MediaRoute::Id& media_route_id() const { return media_route_id_; } |
49 | 50 |
50 // The media source being routed. | 51 // The media source being routed. |
51 const MediaSource& media_source() const { return media_source_; } | 52 const MediaSource& media_source() const { return media_source_; } |
52 | 53 |
53 // The ID of sink being routed to. | 54 // The ID of sink being routed to. |
54 const MediaSink::Id& media_sink_id() const { return media_sink_id_; } | 55 const MediaSink::Id& media_sink_id() const { return media_sink_id_; } |
(...skipping 24 matching lines...) Expand all Loading... |
79 MediaSink::Id media_sink_id_; | 80 MediaSink::Id media_sink_id_; |
80 std::string description_; | 81 std::string description_; |
81 bool is_local_; | 82 bool is_local_; |
82 std::string custom_controller_path_; | 83 std::string custom_controller_path_; |
83 bool for_display_; | 84 bool for_display_; |
84 }; | 85 }; |
85 | 86 |
86 } // namespace media_router | 87 } // namespace media_router |
87 | 88 |
88 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 89 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
OLD | NEW |