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

Side by Side Diff: net/base/net_util.cc

Issue 15662008: Make net and ipc explicitly use the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/net_log.cc ('k') | net/cert/crl_set.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/base/net_log.cc ('k') | net/cert/crl_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698