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

Unified Diff: net/base/ip_address_number.h

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 7 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 7773057a98f1b4ec04beb654e3f5eb964874fea0..20e804ac30eb5791fcf64ca1aa8cba2a0312a232 100644
--- a/net/base/ip_address_number.h
+++ b/net/base/ip_address_number.h
@@ -31,21 +31,21 @@ NET_EXPORT bool IsIPAddressReserved(const IPAddressNumber& address);
// Returns the string representation of an IP address.
// For example: "192.168.0.1" or "::1".
-NET_EXPORT std::string IPAddressToString(const uint8* address,
+NET_EXPORT std::string IPAddressToString(const uint8_t* address,
size_t address_len);
// Returns the string representation of an IP address along with its port.
// For example: "192.168.0.1:99" or "[::1]:80".
-NET_EXPORT std::string IPAddressToStringWithPort(const uint8* address,
+NET_EXPORT std::string IPAddressToStringWithPort(const uint8_t* address,
size_t address_len,
- uint16 port);
+ uint16_t port);
// Same as IPAddressToString() but for an IPAddressNumber.
NET_EXPORT std::string IPAddressToString(const IPAddressNumber& addr);
// Same as IPAddressToStringWithPort() but for an IPAddressNumber.
-NET_EXPORT std::string IPAddressToStringWithPort(
- const IPAddressNumber& addr, uint16 port);
+NET_EXPORT std::string IPAddressToStringWithPort(const IPAddressNumber& addr,
+ uint16_t port);
// Returns the address as a sequence of bytes in network-byte-order.
NET_EXPORT std::string IPAddressToPackedString(const IPAddressNumber& addr);

Powered by Google App Engine
This is Rietveld 408576698