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