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_web_ui_controller(bool supports_web_ui_controller) { | |
82 supports_web_ui_controller_ = supports_web_ui_controller; | |
83 } | |
84 bool supports_web_ui_controller() const { | |
85 return supports_web_ui_controller_; | |
86 } | |
87 | |
81 void set_for_display(bool for_display) { for_display_ = for_display; } | 88 void set_for_display(bool for_display) { for_display_ = for_display; } |
82 bool for_display() const { return for_display_; } | 89 bool for_display() const { return for_display_; } |
83 | 90 |
84 void set_incognito(bool is_incognito) { is_incognito_ = is_incognito; } | 91 void set_incognito(bool is_incognito) { is_incognito_ = is_incognito; } |
85 bool is_incognito() const { return is_incognito_; } | 92 bool is_incognito() const { return is_incognito_; } |
86 | 93 |
87 void set_offscreen_presentation(bool is_offscreen_presentation) { | 94 void set_offscreen_presentation(bool is_offscreen_presentation) { |
88 is_offscreen_presentation_ = is_offscreen_presentation; | 95 is_offscreen_presentation_ = is_offscreen_presentation; |
89 } | 96 } |
90 bool is_offscreen_presentation() const { return is_offscreen_presentation_; } | 97 bool is_offscreen_presentation() const { return is_offscreen_presentation_; } |
(...skipping 16 matching lines...) Expand all Loading... | |
107 | 114 |
108 // |true| if the route is created locally (versus discovered by a media route | 115 // |true| if the route is created locally (versus discovered by a media route |
109 // provider.) | 116 // provider.) |
110 bool is_local_ = false; | 117 bool is_local_ = false; |
111 | 118 |
112 // The custom controller path. This allows route provider to have custom route | 119 // 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 | 120 // detail as well as its own route control features route control features in |
114 // the media router dialog. | 121 // the media router dialog. |
115 std::string custom_controller_path_; | 122 std::string custom_controller_path_; |
116 | 123 |
124 // Whether the provider for this route supports WebUI route controllers. | |
125 bool supports_web_ui_controller_; | |
imcheng
2017/06/16 00:12:32
= false;
takumif
2017/06/16 18:16:53
Done.
| |
126 | |
117 // |true| if the route can be displayed in the UI. | 127 // |true| if the route can be displayed in the UI. |
118 bool for_display_ = false; | 128 bool for_display_ = false; |
119 | 129 |
120 // |true| if the route was created by an incognito profile. | 130 // |true| if the route was created by an incognito profile. |
121 bool is_incognito_ = false; | 131 bool is_incognito_ = false; |
122 | 132 |
123 // |true| if the presentation associated with this route is an offscreen | 133 // |true| if the presentation associated with this route is an offscreen |
124 // presentation. | 134 // presentation. |
125 bool is_offscreen_presentation_ = false; | 135 bool is_offscreen_presentation_ = false; |
126 }; | 136 }; |
127 | 137 |
128 } // namespace media_router | 138 } // namespace media_router |
129 | 139 |
130 #endif // CHROME_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 140 #endif // CHROME_COMMON_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
OLD | NEW |