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/browser/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 { |
11 | 11 |
12 MediaSinkInternal::MediaSinkInternal(const MediaSink& sink, | 12 MediaSinkInternal::MediaSinkInternal(const MediaSink& sink, |
13 const DialSinkExtraData& dial_data) | 13 const DialSinkExtraData& dial_data) |
14 : sink_(sink), sink_type_(SinkType::DIAL) { | 14 : sink_(sink), sink_type_(SinkType::DIAL) { |
15 dial_data_.Init(dial_data); | 15 dial_data_.Init(dial_data); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 CastSinkExtraData::CastSinkExtraData(const CastSinkExtraData& other) = default; | 166 CastSinkExtraData::CastSinkExtraData(const CastSinkExtraData& other) = default; |
167 CastSinkExtraData::~CastSinkExtraData() = default; | 167 CastSinkExtraData::~CastSinkExtraData() = default; |
168 | 168 |
169 bool CastSinkExtraData::operator==(const CastSinkExtraData& other) const { | 169 bool CastSinkExtraData::operator==(const CastSinkExtraData& other) const { |
170 return ip_address == other.ip_address && model_name == other.model_name && | 170 return ip_address == other.ip_address && model_name == other.model_name && |
171 capabilities == other.capabilities && | 171 capabilities == other.capabilities && |
172 cast_channel_id == other.cast_channel_id; | 172 cast_channel_id == other.cast_channel_id; |
173 } | 173 } |
174 | 174 |
175 } // namespace media_router | 175 } // namespace media_router |
OLD | NEW |