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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 | 64 |
65 // The custom controller path. This allows route provider to have custom route | 65 // The custom controller path. This allows route provider to have custom route |
66 // detail as well as its own route control features route control features in | 66 // detail as well as its own route control features route control features in |
67 // the media router dialog. | 67 // the media router dialog. |
68 const std::string& custom_controller_path() const { | 68 const std::string& custom_controller_path() const { |
69 return custom_controller_path_; | 69 return custom_controller_path_; |
70 } | 70 } |
71 | 71 |
72 bool for_display() const { return for_display_; } | 72 bool for_display() const { return for_display_; } |
73 | 73 |
74 bool is_offscreen_presentation() const { return is_offscreen_presentation_; } | |
mark a. foltz
2015/10/12 21:56:10
Please document the meaning of is_offscreen_presen
imcheng
2015/10/17 01:00:22
Done.
| |
75 void set_is_offscreen_presentation(bool is_offscreen_presentation) { | |
76 is_offscreen_presentation = is_offscreen_presentation_; | |
77 } | |
78 | |
74 bool Equals(const MediaRoute& other) const; | 79 bool Equals(const MediaRoute& other) const; |
75 | 80 |
76 private: | 81 private: |
77 MediaRoute::Id media_route_id_; | 82 MediaRoute::Id media_route_id_; |
78 MediaSource media_source_; | 83 MediaSource media_source_; |
79 MediaSink::Id media_sink_id_; | 84 MediaSink::Id media_sink_id_; |
80 std::string description_; | 85 std::string description_; |
81 bool is_local_; | 86 bool is_local_; |
82 std::string custom_controller_path_; | 87 std::string custom_controller_path_; |
83 bool for_display_; | 88 bool for_display_; |
89 bool is_offscreen_presentation_; | |
84 }; | 90 }; |
85 | 91 |
86 } // namespace media_router | 92 } // namespace media_router |
87 | 93 |
88 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 94 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
OLD | NEW |