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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/discovery/discovery_network_info.cpp
diff --git a/chrome/browser/media/router/discovery/discovery_network_info.cpp b/chrome/browser/media/router/discovery/discovery_network_info.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..ad0585e4e475c19fcc81185cfe0b5835a7f9736d
--- /dev/null
+++ b/chrome/browser/media/router/discovery/discovery_network_info.cpp
@@ -0,0 +1,25 @@
+// 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.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/media/router/discovery/discovery_network_info.h"
+
+DiscoveryNetworkInfo::DiscoveryNetworkInfo() {}
+
+DiscoveryNetworkInfo::DiscoveryNetworkInfo(std::string name,
+ std::string network_id)
+ : name(name), network_id(network_id) {}
+
+DiscoveryNetworkInfo::DiscoveryNetworkInfo(const DiscoveryNetworkInfo&) =
+ default;
+
+DiscoveryNetworkInfo& DiscoveryNetworkInfo::operator=(
+ const DiscoveryNetworkInfo&) = default;
+
+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.
+ return name == o.name && network_id == o.network_id;
+}
+
+bool DiscoveryNetworkInfo::operator!=(const DiscoveryNetworkInfo& o) const {
+ return !(*this == o);
+}

Powered by Google App Engine
This is Rietveld 408576698