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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/discovery/discovery_network_info.cc
diff --git a/chrome/browser/media/router/discovery/discovery_network_info.cc b/chrome/browser/media/router/discovery/discovery_network_info.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7d928e53db3fa713c4a5086975d6be6b72ef9a28
--- /dev/null
+++ b/chrome/browser/media/router/discovery/discovery_network_info.cc
@@ -0,0 +1,27 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// 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(const std::string& name,
+ const std::string& network_id)
+ : name(name), network_id(network_id) {}
+
+DiscoveryNetworkInfo::~DiscoveryNetworkInfo() {}
+
+DiscoveryNetworkInfo::DiscoveryNetworkInfo(const DiscoveryNetworkInfo&) =
+ default;
+
+DiscoveryNetworkInfo& DiscoveryNetworkInfo::operator=(
+ const DiscoveryNetworkInfo&) = default;
+
+bool DiscoveryNetworkInfo::operator==(const DiscoveryNetworkInfo& other) const {
+ return name == other.name && network_id == other.network_id;
+}
+
+bool DiscoveryNetworkInfo::operator!=(const DiscoveryNetworkInfo& o) const {
+ return !(*this == o);
+}

Powered by Google App Engine
This is Rietveld 408576698