OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "chrome/common/media_router/discovery/media_sink_internal.h" | 5 #include "chrome/common/media_router/discovery/media_sink_internal.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 | 9 |
10 namespace media_router { | 10 namespace media_router { |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 bool DialSinkExtraData::operator==(const DialSinkExtraData& other) const { | 168 bool DialSinkExtraData::operator==(const DialSinkExtraData& other) const { |
169 return ip_address == other.ip_address && model_name == other.model_name && | 169 return ip_address == other.ip_address && model_name == other.model_name && |
170 app_url == other.app_url; | 170 app_url == other.app_url; |
171 } | 171 } |
172 | 172 |
173 CastSinkExtraData::CastSinkExtraData() = default; | 173 CastSinkExtraData::CastSinkExtraData() = default; |
174 CastSinkExtraData::CastSinkExtraData(const CastSinkExtraData& other) = default; | 174 CastSinkExtraData::CastSinkExtraData(const CastSinkExtraData& other) = default; |
175 CastSinkExtraData::~CastSinkExtraData() = default; | 175 CastSinkExtraData::~CastSinkExtraData() = default; |
176 | 176 |
177 bool CastSinkExtraData::operator==(const CastSinkExtraData& other) const { | 177 bool CastSinkExtraData::operator==(const CastSinkExtraData& other) const { |
178 return ip_address == other.ip_address && model_name == other.model_name && | 178 return ip_address == other.ip_address && port == other.port && |
179 capabilities == other.capabilities && | 179 model_name == other.model_name && capabilities == other.capabilities && |
180 cast_channel_id == other.cast_channel_id; | 180 cast_channel_id == other.cast_channel_id && |
| 181 discovered_by_dial == other.discovered_by_dial; |
181 } | 182 } |
182 | 183 |
183 } // namespace media_router | 184 } // namespace media_router |
OLD | NEW |