| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <unicode/regex.h> | 7 #include <unicode/regex.h> |
| 8 #include <unicode/ucnv.h> | 8 #include <unicode/ucnv.h> |
| 9 #include <unicode/uidna.h> | 9 #include <unicode/uidna.h> |
| 10 #include <unicode/ulocdata.h> | 10 #include <unicode/ulocdata.h> |
| (...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 true, &result); | 1218 true, &result); |
| 1219 } else { | 1219 } else { |
| 1220 base::JsonDoubleQuote(EscapePath(raw_bytes), true, &result); | 1220 base::JsonDoubleQuote(EscapePath(raw_bytes), true, &result); |
| 1221 } | 1221 } |
| 1222 if (is_dir) { | 1222 if (is_dir) { |
| 1223 result.append(",1,"); | 1223 result.append(",1,"); |
| 1224 } else { | 1224 } else { |
| 1225 result.append(",0,"); | 1225 result.append(",0,"); |
| 1226 } | 1226 } |
| 1227 | 1227 |
| 1228 base::JsonDoubleQuote( | 1228 base::JsonDoubleQuote(FormatBytesUnlocalized(size), true, &result); |
| 1229 FormatBytes(size, GetByteDisplayUnits(size), true), | |
| 1230 true, | |
| 1231 &result); | |
| 1232 | 1229 |
| 1233 result.append(","); | 1230 result.append(","); |
| 1234 | 1231 |
| 1235 string16 modified_str; | 1232 string16 modified_str; |
| 1236 // |modified| can be NULL in FTP listings. | 1233 // |modified| can be NULL in FTP listings. |
| 1237 if (!modified.is_null()) { | 1234 if (!modified.is_null()) { |
| 1238 modified_str = base::TimeFormatShortDateAndTime(modified); | 1235 modified_str = base::TimeFormatShortDateAndTime(modified); |
| 1239 } | 1236 } |
| 1240 base::JsonDoubleQuote(modified_str, true, &result); | 1237 base::JsonDoubleQuote(modified_str, true, &result); |
| 1241 | 1238 |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2242 | 2239 |
| 2243 NetworkInterface::NetworkInterface(const std::string& name, | 2240 NetworkInterface::NetworkInterface(const std::string& name, |
| 2244 const IPAddressNumber& address) | 2241 const IPAddressNumber& address) |
| 2245 : name(name), address(address) { | 2242 : name(name), address(address) { |
| 2246 } | 2243 } |
| 2247 | 2244 |
| 2248 NetworkInterface::~NetworkInterface() { | 2245 NetworkInterface::~NetworkInterface() { |
| 2249 } | 2246 } |
| 2250 | 2247 |
| 2251 } // namespace net | 2248 } // namespace net |
| OLD | NEW |