| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <map> | 8 #include <map> |
| 9 #include <unicode/ucnv.h> | 9 #include <unicode/ucnv.h> |
| 10 #include <unicode/uidna.h> | 10 #include <unicode/uidna.h> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include <wspiapi.h> // Needed for Win2k compat. | 22 #include <wspiapi.h> // Needed for Win2k compat. |
| 23 #elif defined(OS_POSIX) | 23 #elif defined(OS_POSIX) |
| 24 #include <netdb.h> | 24 #include <netdb.h> |
| 25 #include <sys/socket.h> | 25 #include <sys/socket.h> |
| 26 #include <fcntl.h> | 26 #include <fcntl.h> |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 #include "base/basictypes.h" | 29 #include "base/basictypes.h" |
| 30 #include "base/file_path.h" | 30 #include "base/file_path.h" |
| 31 #include "base/file_util.h" | 31 #include "base/file_util.h" |
| 32 #include "base/i18n/file_util_icu.h" |
| 32 #include "base/lock.h" | 33 #include "base/lock.h" |
| 33 #include "base/logging.h" | 34 #include "base/logging.h" |
| 34 #include "base/message_loop.h" | 35 #include "base/message_loop.h" |
| 35 #include "base/path_service.h" | 36 #include "base/path_service.h" |
| 36 #include "base/singleton.h" | 37 #include "base/singleton.h" |
| 37 #include "base/stl_util-inl.h" | 38 #include "base/stl_util-inl.h" |
| 38 #include "base/string_escape.h" | 39 #include "base/string_escape.h" |
| 39 #include "base/string_piece.h" | 40 #include "base/string_piece.h" |
| 40 #include "base/string_tokenizer.h" | 41 #include "base/string_tokenizer.h" |
| 41 #include "base/string_util.h" | 42 #include "base/string_util.h" |
| (...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 if (length > 0) | 1363 if (length > 0) |
| 1363 ports.insert(StringToInt(WideToASCII( | 1364 ports.insert(StringToInt(WideToASCII( |
| 1364 allowed_ports.substr(last, length)))); | 1365 allowed_ports.substr(last, length)))); |
| 1365 last = i + 1; | 1366 last = i + 1; |
| 1366 } | 1367 } |
| 1367 } | 1368 } |
| 1368 explicitly_allowed_ports = ports; | 1369 explicitly_allowed_ports = ports; |
| 1369 } | 1370 } |
| 1370 | 1371 |
| 1371 } // namespace net | 1372 } // namespace net |
| OLD | NEW |