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

Unified Diff: net/base/ip_address_number.h

Issue 1215933004: New new versions of Starts/EndsWith and SplitString in net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 5 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: net/base/ip_address_number.h
diff --git a/net/base/ip_address_number.h b/net/base/ip_address_number.h
index f8adb05ca6185fd0ff2dcd46ec4ad7b35bddd668..b1058758d9d1f3b91c7d4dfb264369b5b54a17ea 100644
--- a/net/base/ip_address_number.h
+++ b/net/base/ip_address_number.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
namespace net {
@@ -58,7 +59,7 @@ NET_EXPORT bool ParseURLHostnameToNumber(const std::string& hostname,
// Parses an IP address literal (either IPv4 or IPv6) to its numeric value.
// Returns true on success and fills |ip_number| with the numeric value.
-NET_EXPORT bool ParseIPLiteralToNumber(const std::string& ip_literal,
+NET_EXPORT bool ParseIPLiteralToNumber(const base::StringPiece& ip_literal,
IPAddressNumber* ip_number);
// Converts an IPv4 address to an IPv4-mapped IPv6 address.

Powered by Google App Engine
This is Rietveld 408576698