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

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

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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/listen_socket.cc ('k') | net/base/x509_certificate.h » ('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) 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 <algorithm> 5 #include <algorithm>
6 #include <map> 6 #include <map>
7 #include <unicode/ucnv.h> 7 #include <unicode/ucnv.h>
8 #include <unicode/uidna.h> 8 #include <unicode/uidna.h>
9 #include <unicode/ulocdata.h> 9 #include <unicode/ulocdata.h>
10 #include <unicode/uniset.h> 10 #include <unicode/uniset.h>
11 #include <unicode/uscript.h> 11 #include <unicode/uscript.h>
12 #include <unicode/uset.h> 12 #include <unicode/uset.h>
13 13
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include <windows.h> 17 #include <windows.h>
18 #include <winsock2.h> 18 #include <winsock2.h>
19 #include <ws2tcpip.h> 19 #include <ws2tcpip.h>
20 #include <wspiapi.h> // Needed for Win2k compat. 20 #include <wspiapi.h> // Needed for Win2k compat.
21 #elif defined(OS_POSIX) 21 #elif defined(OS_POSIX)
22 #include <netdb.h> 22 #include <netdb.h>
23 #include <sys/socket.h> 23 #include <sys/socket.h>
24 #include <fcntl.h> 24 #include <fcntl.h>
25 #endif 25 #endif
26 26
27 #if defined(OS_FREEBSD)
28 #include <netinet/in.h>
29 #endif
30
27 #include "net/base/net_util.h" 31 #include "net/base/net_util.h"
28 32
29 #include "base/basictypes.h" 33 #include "base/basictypes.h"
30 #include "base/file_path.h" 34 #include "base/file_path.h"
31 #include "base/file_util.h" 35 #include "base/file_util.h"
32 #include "base/lock.h" 36 #include "base/lock.h"
33 #include "base/logging.h" 37 #include "base/logging.h"
34 #include "base/message_loop.h" 38 #include "base/message_loop.h"
35 #include "base/path_service.h" 39 #include "base/path_service.h"
36 #include "base/singleton.h" 40 #include "base/singleton.h"
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 if (length > 0) 1358 if (length > 0)
1355 ports.insert(StringToInt(WideToASCII( 1359 ports.insert(StringToInt(WideToASCII(
1356 allowed_ports.substr(last, length)))); 1360 allowed_ports.substr(last, length))));
1357 last = i + 1; 1361 last = i + 1;
1358 } 1362 }
1359 } 1363 }
1360 explicitly_allowed_ports = ports; 1364 explicitly_allowed_ports = ports;
1361 } 1365 }
1362 1366
1363 } // namespace net 1367 } // namespace net
OLDNEW
« no previous file with comments | « net/base/listen_socket.cc ('k') | net/base/x509_certificate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698