Chromium Code Reviews| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 67 | 67 |
| 68 // The custom controller path. This allows route provider to have custom route | 68 // The custom controller path. This allows route provider to have custom route |
| 69 // detail as well as its own route control features route control features in | 69 // detail as well as its own route control features route control features in |
| 70 // the media router dialog. | 70 // the media router dialog. |
| 71 const std::string& custom_controller_path() const { | 71 const std::string& custom_controller_path() const { |
| 72 return custom_controller_path_; | 72 return custom_controller_path_; |
| 73 } | 73 } |
| 74 | 74 |
| 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 incognito. Set this to true when the route was created by an |
|
tommycli
2016/06/29 23:09:33
I recommend refactoring this comment to simply say
trizzofo
2016/06/29 23:32:22
Done.
| |
| 78 // the record (incognito) profile. | 78 // incognito profile. |
| 79 void set_off_the_record(bool off_the_record) { | 79 void set_incognito(bool incognito) { incognito_ = incognito; } |
| 80 off_the_record_ = off_the_record; | |
| 81 } | |
| 82 | 80 |
| 83 bool off_the_record() const { return off_the_record_; } | 81 bool incognito() const { return incognito_; } |
| 84 | 82 |
| 85 bool Equals(const MediaRoute& other) const; | 83 bool Equals(const MediaRoute& other) const; |
| 86 | 84 |
| 87 private: | 85 private: |
| 88 MediaRoute::Id media_route_id_; | 86 MediaRoute::Id media_route_id_; |
| 89 MediaSource media_source_; | 87 MediaSource media_source_; |
| 90 MediaSink::Id media_sink_id_; | 88 MediaSink::Id media_sink_id_; |
| 91 std::string description_; | 89 std::string description_; |
| 92 bool is_local_; | 90 bool is_local_; |
| 93 std::string custom_controller_path_; | 91 std::string custom_controller_path_; |
| 94 bool for_display_; | 92 bool for_display_; |
| 95 bool off_the_record_; | 93 bool incognito_; |
| 96 }; | 94 }; |
| 97 | 95 |
| 98 } // namespace media_router | 96 } // namespace media_router |
| 99 | 97 |
| 100 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 98 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
| OLD | NEW |