summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.h
diff options
context:
space:
mode:
authorszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 03:32:11 +0000
committerszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 03:32:11 +0000
commit23330db782cd3bb9fc8dc40894436c39eea8c30f (patch)
tree69eaec5c5470a70019f4dd659d0548492c875b9f /net/base/net_util.h
parent00fdd17f17c0d9a602b077b85630dd3d76634a4b (diff)
downloadchromium_src-23330db782cd3bb9fc8dc40894436c39eea8c30f.zip
chromium_src-23330db782cd3bb9fc8dc40894436c39eea8c30f.tar.gz
chromium_src-23330db782cd3bb9fc8dc40894436c39eea8c30f.tar.bz2
Remove interface probing for IPv6 support from HostResolverImpl
Since r195406 the probe is not used. It is now safe to remove this code completely. BUG=260750 Review URL: https://chromiumcodereview.appspot.com/19286002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r--net/base/net_util.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h
index c5d49fa..c139760 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -419,41 +419,6 @@ class NET_EXPORT ScopedPortException {
DISALLOW_COPY_AND_ASSIGN(ScopedPortException);
};
-// These are used for UMA histograms. Any new values must be added to the end.
-enum IPv6SupportStatus {
- IPV6_CANNOT_CREATE_SOCKETS,
- IPV6_CAN_CREATE_SOCKETS, // Obsolete
- IPV6_GETIFADDRS_FAILED,
- IPV6_GLOBAL_ADDRESS_MISSING,
- IPV6_GLOBAL_ADDRESS_PRESENT,
- IPV6_INTERFACE_ARRAY_TOO_SHORT,
- IPV6_SUPPORT_MAX // Bounding value for enumeration. Also used for case
- // where detection is not supported.
-};
-
-// Encapsulates the results of an IPv6 probe.
-struct NET_EXPORT IPv6SupportResult {
- IPv6SupportResult(bool ipv6_supported,
- IPv6SupportStatus ipv6_support_status,
- int os_error);
-
- // Serializes the results to a Value. Caller takes ownership of the returned
- // Value.
- base::Value* ToNetLogValue(NetLog::LogLevel log_level) const;
-
- bool ipv6_supported;
- // Set to IPV6_SUPPORT_MAX if detection isn't supported.
- IPv6SupportStatus ipv6_support_status;
-
- // Error code from the OS, or zero if there was no error.
- int os_error;
-};
-
-// Perform a simplistic test to see if IPv6 is supported by trying to create an
-// IPv6 socket.
-// TODO(jar): Make test more in-depth as needed.
-NET_EXPORT IPv6SupportResult TestIPv6Support();
-
// Returns true if it can determine that only loopback addresses are configured.
// i.e. if only 127.0.0.1 and ::1 are routable.
// Also returns false if it cannot determine this.