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); |
+} |