Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/common/media_router/discovery/media_sink_internal.cc

Issue 2965843002: [Media Router] Support dual discovery (Closed)
Patch Set: resolve code review comments from Derek Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698