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_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 5 #ifndef CHROME_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
6 #define CHROME_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 6 #define CHROME_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void set_local(bool is_local) { is_local_ = is_local; } | 71 void set_local(bool is_local) { is_local_ = is_local; } |
72 bool is_local() const { return is_local_; } | 72 bool is_local() const { return is_local_; } |
73 | 73 |
74 void set_custom_controller_path(const std::string& custom_controller_path) { | 74 void set_custom_controller_path(const std::string& custom_controller_path) { |
75 custom_controller_path_ = custom_controller_path; | 75 custom_controller_path_ = custom_controller_path; |
76 } | 76 } |
77 const std::string& custom_controller_path() const { | 77 const std::string& custom_controller_path() const { |
78 return custom_controller_path_; | 78 return custom_controller_path_; |
79 } | 79 } |
80 | 80 |
| 81 void set_supports_media_route_controller( |
| 82 bool supports_media_route_controller) { |
| 83 supports_media_route_controller_ = supports_media_route_controller; |
| 84 } |
| 85 bool supports_media_route_controller() const { |
| 86 return supports_media_route_controller_; |
| 87 } |
| 88 |
81 void set_for_display(bool for_display) { for_display_ = for_display; } | 89 void set_for_display(bool for_display) { for_display_ = for_display; } |
82 bool for_display() const { return for_display_; } | 90 bool for_display() const { return for_display_; } |
83 | 91 |
84 void set_incognito(bool is_incognito) { is_incognito_ = is_incognito; } | 92 void set_incognito(bool is_incognito) { is_incognito_ = is_incognito; } |
85 bool is_incognito() const { return is_incognito_; } | 93 bool is_incognito() const { return is_incognito_; } |
86 | 94 |
87 void set_offscreen_presentation(bool is_offscreen_presentation) { | 95 void set_offscreen_presentation(bool is_offscreen_presentation) { |
88 is_offscreen_presentation_ = is_offscreen_presentation; | 96 is_offscreen_presentation_ = is_offscreen_presentation; |
89 } | 97 } |
90 bool is_offscreen_presentation() const { return is_offscreen_presentation_; } | 98 bool is_offscreen_presentation() const { return is_offscreen_presentation_; } |
(...skipping 16 matching lines...) Expand all Loading... |
107 | 115 |
108 // |true| if the route is created locally (versus discovered by a media route | 116 // |true| if the route is created locally (versus discovered by a media route |
109 // provider.) | 117 // provider.) |
110 bool is_local_ = false; | 118 bool is_local_ = false; |
111 | 119 |
112 // The custom controller path. This allows route provider to have custom route | 120 // The custom controller path. This allows route provider to have custom route |
113 // detail as well as its own route control features route control features in | 121 // detail as well as its own route control features route control features in |
114 // the media router dialog. | 122 // the media router dialog. |
115 std::string custom_controller_path_; | 123 std::string custom_controller_path_; |
116 | 124 |
| 125 // Whether the provider for this route supports the Media Route Controller. |
| 126 bool supports_media_route_controller_ = false; |
| 127 |
117 // |true| if the route can be displayed in the UI. | 128 // |true| if the route can be displayed in the UI. |
118 bool for_display_ = false; | 129 bool for_display_ = false; |
119 | 130 |
120 // |true| if the route was created by an incognito profile. | 131 // |true| if the route was created by an incognito profile. |
121 bool is_incognito_ = false; | 132 bool is_incognito_ = false; |
122 | 133 |
123 // |true| if the presentation associated with this route is an offscreen | 134 // |true| if the presentation associated with this route is an offscreen |
124 // presentation. | 135 // presentation. |
125 bool is_offscreen_presentation_ = false; | 136 bool is_offscreen_presentation_ = false; |
126 }; | 137 }; |
127 | 138 |
128 } // namespace media_router | 139 } // namespace media_router |
129 | 140 |
130 #endif // CHROME_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 141 #endif // CHROME_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
OLD | NEW |