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

Unified Diff: net/base/ip_address.h

Issue 1932363003: Remove net::IPAddressNumber. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/address_list_unittest.cc ('k') | net/base/ip_address.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ip_address.h
diff --git a/net/base/ip_address.h b/net/base/ip_address.h
index 5ccddded4d00d45f04728fa45395a735e53685f8..72348c172e7e83022babfa352e0a0a294a994ff7 100644
--- a/net/base/ip_address.h
+++ b/net/base/ip_address.h
@@ -13,7 +13,6 @@
#include "base/compiler_specific.h"
#include "base/strings/string_piece.h"
-#include "net/base/ip_address_number.h"
#include "net/base/net_export.h"
namespace net {
@@ -25,8 +24,9 @@ class NET_EXPORT IPAddress {
// Creates a zero-sized, invalid address.
IPAddress();
- // Creates an IP address from a deprecated IPAddressNumber.
- explicit IPAddress(const IPAddressNumber& address);
+ // Copies the input address to |ip_address_|. The input is expected to be in
+ // network byte order.
+ explicit IPAddress(const std::vector<uint8_t>& address);
IPAddress(const IPAddress& other);
« no previous file with comments | « net/base/address_list_unittest.cc ('k') | net/base/ip_address.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698