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

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

Issue 2750453002: Add DiscoveryNetworkMonitor implementation (Closed)
Patch Set: Temporarily fix Windows and Mac compilation Created 3 years, 6 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.
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(const std::string& name,
10 const std::string& network_id)
11 : name(name), network_id(network_id) {}
12
13 DiscoveryNetworkInfo::~DiscoveryNetworkInfo() {}
14
15 DiscoveryNetworkInfo::DiscoveryNetworkInfo(const DiscoveryNetworkInfo&) =
16 default;
17
18 DiscoveryNetworkInfo& DiscoveryNetworkInfo::operator=(
19 const DiscoveryNetworkInfo&) = default;
20
21 bool DiscoveryNetworkInfo::operator==(const DiscoveryNetworkInfo& other) const {
22 return name == other.name && network_id == other.network_id;
23 }
24
25 bool DiscoveryNetworkInfo::operator!=(const DiscoveryNetworkInfo& o) const {
26 return !(*this == o);
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698