| Index: chrome/browser/media/router/media_sink.h
|
| diff --git a/chrome/browser/media/router/media_sink.h b/chrome/browser/media/router/media_sink.h
|
| index e348fe21c55977b2412473deb669c94449457164..81b965023745e57fb498e0abc37c9dffa5ad4ab1 100644
|
| --- a/chrome/browser/media/router/media_sink.h
|
| +++ b/chrome/browser/media/router/media_sink.h
|
| @@ -17,6 +17,7 @@ class Collator;
|
| namespace media_router {
|
|
|
| // Represents a sink to which media can be routed.
|
| +// TODO(zhaobin): convert MediaSink into a struct.
|
| class MediaSink {
|
| public:
|
| using Id = std::string;
|
| @@ -59,8 +60,12 @@ class MediaSink {
|
| void set_icon_type(IconType icon_type) { icon_type_ = icon_type; }
|
| IconType icon_type() const { return icon_type_; }
|
|
|
| + // This method only compares IDs.
|
| bool Equals(const MediaSink& other) const;
|
|
|
| + // This method compares all fields.
|
| + bool operator==(const MediaSink& other) const;
|
| +
|
| // Compares |this| to |other| first by their icon types, then their names
|
| // using |collator|, and finally their IDs.
|
| bool CompareUsingCollator(const MediaSink& other,
|
|
|