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

Unified Diff: net/base/net_util.cc

Issue 23464033: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix valgrind error Created 7 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 | « net/base/net_util.h ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.cc
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index c4f00bef6ee6d51688831afe9add7eec25dc0026..2dd92c105c270dd9b5d14283f570233e8cceb678 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -1606,6 +1606,11 @@ std::string IPAddressToStringWithPort(const IPAddressNumber& addr,
return IPAddressToStringWithPort(&addr.front(), addr.size(), port);
}
+std::string IPAddressToPackedString(const IPAddressNumber& addr) {
+ return std::string(reinterpret_cast<const char *>(&addr.front()),
+ addr.size());
+}
+
std::string GetHostName() {
#if defined(OS_WIN)
EnsureWinsockInit();
« no previous file with comments | « net/base/net_util.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698