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

Side by Side Diff: chrome/browser/media/router/discovery/discovery_network_info.cpp

Issue 2750453002: Add DiscoveryNetworkMonitor implementation (Closed)
Patch Set: Respond to mfoltz' comments Created 3 years, 7 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
(Empty)
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
imcheng 2017/05/26 23:49:00 .cc instead of .cpp? Though see mfoltz@'s comment
btolsch 2017/05/30 09:54:30 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/media/router/discovery/discovery_network_info.h"
6
7 DiscoveryNetworkInfo::DiscoveryNetworkInfo() {}
8
9 DiscoveryNetworkInfo::DiscoveryNetworkInfo(std::string name,
10 std::string network_id)
11 : name(name), network_id(network_id) {}
12
13 DiscoveryNetworkInfo::DiscoveryNetworkInfo(const DiscoveryNetworkInfo&) =
14 default;
15
16 DiscoveryNetworkInfo& DiscoveryNetworkInfo::operator=(
17 const DiscoveryNetworkInfo&) = default;
18
19 bool DiscoveryNetworkInfo::operator==(const DiscoveryNetworkInfo& o) const {
imcheng 2017/05/26 23:49:00 nit: Please use a more descriptive name for the pa
btolsch 2017/05/30 09:54:30 Done.
20 return name == o.name && network_id == o.network_id;
21 }
22
23 bool DiscoveryNetworkInfo::operator!=(const DiscoveryNetworkInfo& o) const {
24 return !(*this == o);
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698