| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/base/net_util.h" | 5 #include "net/base/net_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1932 IPv6SupportResult::IPv6SupportResult(bool ipv6_supported, | 1932 IPv6SupportResult::IPv6SupportResult(bool ipv6_supported, |
| 1933 IPv6SupportStatus ipv6_support_status, | 1933 IPv6SupportStatus ipv6_support_status, |
| 1934 int os_error) | 1934 int os_error) |
| 1935 : ipv6_supported(ipv6_supported), | 1935 : ipv6_supported(ipv6_supported), |
| 1936 ipv6_support_status(ipv6_support_status), | 1936 ipv6_support_status(ipv6_support_status), |
| 1937 os_error(os_error) { | 1937 os_error(os_error) { |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 base::Value* IPv6SupportResult::ToNetLogValue( | 1940 base::Value* IPv6SupportResult::ToNetLogValue( |
| 1941 NetLog::LogLevel /* log_level */) const { | 1941 NetLog::LogLevel /* log_level */) const { |
| 1942 base::DictionaryValue* dict = new DictionaryValue(); | 1942 base::DictionaryValue* dict = new base::DictionaryValue(); |
| 1943 dict->SetBoolean("ipv6_supported", ipv6_supported); | 1943 dict->SetBoolean("ipv6_supported", ipv6_supported); |
| 1944 dict->SetString("ipv6_support_status", | 1944 dict->SetString("ipv6_support_status", |
| 1945 kFinalStatusNames[ipv6_support_status]); | 1945 kFinalStatusNames[ipv6_support_status]); |
| 1946 if (os_error) | 1946 if (os_error) |
| 1947 dict->SetInteger("os_error", os_error); | 1947 dict->SetInteger("os_error", os_error); |
| 1948 return dict; | 1948 return dict; |
| 1949 } | 1949 } |
| 1950 | 1950 |
| 1951 IPv6SupportResult TestIPv6Support() { | 1951 IPv6SupportResult TestIPv6Support() { |
| 1952 IPv6SupportResult result = TestIPv6SupportInternal(); | 1952 IPv6SupportResult result = TestIPv6SupportInternal(); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2224 | 2224 |
| 2225 NetworkInterface::NetworkInterface(const std::string& name, | 2225 NetworkInterface::NetworkInterface(const std::string& name, |
| 2226 const IPAddressNumber& address) | 2226 const IPAddressNumber& address) |
| 2227 : name(name), address(address) { | 2227 : name(name), address(address) { |
| 2228 } | 2228 } |
| 2229 | 2229 |
| 2230 NetworkInterface::~NetworkInterface() { | 2230 NetworkInterface::~NetworkInterface() { |
| 2231 } | 2231 } |
| 2232 | 2232 |
| 2233 } // namespace net | 2233 } // namespace net |
| OLD | NEW |