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

Unified Diff: net/base/ip_address.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase for ChromeOS Created 4 years, 11 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
« no previous file with comments | « net/base/ip_address.h ('k') | net/base/ip_endpoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ip_address.cc
diff --git a/net/base/ip_address.cc b/net/base/ip_address.cc
index 060477ea7d41b73f5daef22e7d64e295277bd10b..d5f5154b42ff1a1094246f2467b9d2eeedb0864f 100644
--- a/net/base/ip_address.cc
+++ b/net/base/ip_address.cc
@@ -61,6 +61,10 @@ bool IPAddress::operator==(const IPAddress& that) const {
return ip_address_ == that.ip_address_;
}
+bool IPAddress::operator!=(const IPAddress& that) const {
+ return ip_address_ != that.ip_address_;
+}
+
bool IPAddress::operator<(const IPAddress& that) const {
// Sort IPv4 before IPv6.
if (ip_address_.size() != that.ip_address_.size()) {
« no previous file with comments | « net/base/ip_address.h ('k') | net/base/ip_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698