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

Unified Diff: net/base/net_util.h

Issue 1162973005: Stop including ip_address_number.h from net_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index b6dbf35fe3bfdd991aa3a0f93fdf9e4239fadd85..652e1c6911cccb742b1ddd381ded0f9b6f03cd5f 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -5,15 +5,6 @@
#ifndef NET_BASE_NET_UTIL_H_
#define NET_BASE_NET_UTIL_H_
-#include "build/build_config.h"
-
-#if defined(OS_WIN)
-#include <windows.h>
-#include <ws2tcpip.h>
-#elif defined(OS_POSIX)
-#include <sys/types.h>
-#include <sys/socket.h>
-#endif
mmenke 2015/06/03 15:21:25 nit: Remove extra blank line
eroman 2015/06/03 18:29:10 Done.
#include <string>
#include <vector>
@@ -23,9 +14,9 @@
#include "base/strings/utf_offset_string_conversions.h"
#include "net/base/address_family.h"
#include "net/base/escape.h"
-#include "net/base/ip_address_number.h"
#include "net/base/net_export.h"
#include "net/base/network_change_notifier.h"
+#include "net/base/sys_addrinfo.h"
class GURL;
@@ -40,6 +31,10 @@ struct Parsed;
namespace net {
+// This is a "forward declaration" to avoid including ip_address_number.h
+// Keep this in sync.
+typedef std::vector<unsigned char> IPAddressNumber;
mmenke 2015/06/03 15:21:25 Hrm... I'm very skeptical of keeping this here.
eroman 2015/06/03 16:23:28 I could perhaps move GetAddressFamily() elsewhere.
+
// Used by FormatUrl to specify handling of certain parts of the url.
typedef uint32 FormatUrlType;
typedef uint32 FormatUrlTypes;
« no previous file with comments | « net/base/ip_pattern_unittest.cc ('k') | net/base/net_util.cc » ('j') | net/dns/dns_hosts.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698