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

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

Issue 8336024: OpenBSD patches for net, split from CR #8275005 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix comment Created 9 years, 2 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
« no previous file with comments | « net/base/listen_socket.cc ('k') | net/dns/dns_config_service_posix.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) 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 #ifndef NET_BASE_NET_UTIL_H_ 5 #ifndef NET_BASE_NET_UTIL_H_
6 #define NET_BASE_NET_UTIL_H_ 6 #define NET_BASE_NET_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include <windows.h> 12 #include <windows.h>
13 #include <ws2tcpip.h> 13 #include <ws2tcpip.h>
14 #elif defined(OS_POSIX) 14 #elif defined(OS_POSIX)
15 #include <sys/types.h>
15 #include <sys/socket.h> 16 #include <sys/socket.h>
16 #endif 17 #endif
17 18
18 #include <list> 19 #include <list>
19 #include <string> 20 #include <string>
20 #include <set> 21 #include <set>
21 #include <vector> 22 #include <vector>
22 23
23 #include "base/basictypes.h" 24 #include "base/basictypes.h"
24 #include "base/string16.h" 25 #include "base/string16.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 507
507 // Returns list of network interfaces except loopback interface. If an 508 // Returns list of network interfaces except loopback interface. If an
508 // interface has more than one address, a separate entry is added to 509 // interface has more than one address, a separate entry is added to
509 // the list for each address. 510 // the list for each address.
510 // Can be called only on a thread that allows IO. 511 // Can be called only on a thread that allows IO.
511 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); 512 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks);
512 513
513 } // namespace net 514 } // namespace net
514 515
515 #endif // NET_BASE_NET_UTIL_H_ 516 #endif // NET_BASE_NET_UTIL_H_
OLDNEW
« no previous file with comments | « net/base/listen_socket.cc ('k') | net/dns/dns_config_service_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698