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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 return custom_controller_path_; | 71 return custom_controller_path_; |
72 } | 72 } |
73 | 73 |
74 bool for_display() const { return for_display_; } | 74 bool for_display() const { return for_display_; } |
75 | 75 |
76 // Set this to true when the route was created by an incognito profile. | 76 // Set this to true when the route was created by an incognito profile. |
77 void set_incognito(bool incognito) { incognito_ = incognito; } | 77 void set_incognito(bool incognito) { incognito_ = incognito; } |
78 | 78 |
79 bool incognito() const { return incognito_; } | 79 bool incognito() const { return incognito_; } |
80 | 80 |
| 81 // Set to |true| if the presentation associated with this route is an |
| 82 // offscreen presentation. |
| 83 void set_is_offscreen_presentation(bool is_offscreen_presentation) { |
| 84 is_offscreen_presentation_ = is_offscreen_presentation; |
| 85 } |
| 86 |
| 87 bool is_offscreen_presentation() const { return is_offscreen_presentation_; } |
| 88 |
81 bool Equals(const MediaRoute& other) const; | 89 bool Equals(const MediaRoute& other) const; |
82 | 90 |
83 private: | 91 private: |
84 MediaRoute::Id media_route_id_; | 92 MediaRoute::Id media_route_id_; |
85 MediaSource media_source_; | 93 MediaSource media_source_; |
86 MediaSink::Id media_sink_id_; | 94 MediaSink::Id media_sink_id_; |
87 std::string description_; | 95 std::string description_; |
88 bool is_local_; | 96 bool is_local_; |
89 std::string custom_controller_path_; | 97 std::string custom_controller_path_; |
90 bool for_display_; | 98 bool for_display_; |
91 bool incognito_; | 99 bool incognito_; |
| 100 bool is_offscreen_presentation_; |
92 }; | 101 }; |
93 | 102 |
94 } // namespace media_router | 103 } // namespace media_router |
95 | 104 |
96 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 105 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
OLD | NEW |