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

Unified Diff: src/url_canon_ip.h

Issue 10919114: Expose functions to stringify IPv4 and IPv6 addresses (Closed) Base URL: http://git.chromium.org/external/google-url.git@master
Patch Set: moar Created 8 years, 3 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 | « no previous file | src/url_canon_ip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/url_canon_ip.h
diff --git a/src/url_canon_ip.h b/src/url_canon_ip.h
index 0a01c9f8ec0faee3aefcaaa78127ecf7c6eff82b..a2900c6a8c640ca3ca14b2476251ae8cc08f217f 100644
--- a/src/url_canon_ip.h
+++ b/src/url_canon_ip.h
@@ -37,6 +37,14 @@
namespace url_canon {
+// Writes the given IPv4 address to |output|.
+GURL_API void AppendIPv4Address(const unsigned char address[4],
+ CanonOutput* output);
+
+// Writes the given IPv6 address to |output|.
+GURL_API void AppendIPv6Address(const unsigned char address[16],
+ CanonOutput* output);
+
// Searches the host name for the portions of the IPv4 address. On success,
// each component will be placed into |components| and it will return true.
// It will return false if the host can not be separated as an IPv4 address
« no previous file with comments | « no previous file | src/url_canon_ip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698