| 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_SINK_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "third_party/icu/source/common/unicode/uversion.h" | 10 #include "third_party/icu/source/common/unicode/uversion.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 MediaSink(const MediaSink& other); | 38 MediaSink(const MediaSink& other); |
| 39 | 39 |
| 40 ~MediaSink(); | 40 ~MediaSink(); |
| 41 | 41 |
| 42 const MediaSink::Id& id() const { return sink_id_; } | 42 const MediaSink::Id& id() const { return sink_id_; } |
| 43 const std::string& name() const { return name_; } | 43 const std::string& name() const { return name_; } |
| 44 void set_description(const std::string& description) { | 44 void set_description(const std::string& description) { |
| 45 description_ = description; | 45 description_ = description; |
| 46 } | 46 } |
| 47 const std::string& description() const { return description_; } | 47 const std::string& description() const { return description_; } |
| 48 void set_domain(const std::string& domain) { | 48 void set_domain(const std::string& domain) { domain_ = domain; } |
| 49 domain_ = domain; | |
| 50 } | |
| 51 const std::string& domain() const { return domain_; } | 49 const std::string& domain() const { return domain_; } |
| 52 IconType icon_type() const { return icon_type_; } | 50 IconType icon_type() const { return icon_type_; } |
| 53 | 51 |
| 54 bool Equals(const MediaSink& other) const; | 52 bool Equals(const MediaSink& other) const; |
| 55 | 53 |
| 56 // Compares |this| to |other| first by their icon types, then their names | 54 // Compares |this| to |other| first by their icon types, then their names |
| 57 // using |collator|, and finally their IDs. | 55 // using |collator|, and finally their IDs. |
| 58 bool CompareUsingCollator(const MediaSink& other, | 56 bool CompareUsingCollator(const MediaSink& other, |
| 59 const icu::Collator* collator) const; | 57 const icu::Collator* collator) const; |
| 60 | 58 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 78 // Optional domain of the MediaSink. | 76 // Optional domain of the MediaSink. |
| 79 std::string domain_; | 77 std::string domain_; |
| 80 | 78 |
| 81 // The type of icon that corresponds with the MediaSink. | 79 // The type of icon that corresponds with the MediaSink. |
| 82 IconType icon_type_; | 80 IconType icon_type_; |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } // namespace media_router | 83 } // namespace media_router |
| 86 | 84 |
| 87 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_ | 85 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_ |
| OLD | NEW |