OLD | NEW |
---|---|
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_LINUX_H_ | 5 #ifndef NET_BASE_NET_UTIL_LINUX_H_ |
6 #define NET_BASE_NET_UTIL_LINUX_H_ | 6 #define NET_BASE_NET_UTIL_LINUX_H_ |
7 | 7 |
8 // This file is only used to expose some of the internals | 8 // This file is only used to expose some of the internals |
9 // of net_util_linux.cc to tests. | 9 // of net_util_linux.cc to tests. |
10 | 10 |
11 #include <string> | |
12 | |
11 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
12 #include "net/base/address_tracker_linux.h" | 14 #include "net/base/address_tracker_linux.h" |
13 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
16 #include "net/base/network_change_notifier.h" | |
pauljensen
2015/01/26 18:09:35
This isn't needed anymore.
derekjchow1
2015/01/27 01:18:04
Done.
| |
14 | 17 |
15 namespace net { | 18 namespace net { |
16 namespace internal { | 19 namespace internal { |
17 | 20 |
18 typedef char* (*GetInterfaceNameFunction)(unsigned int interface_index, | 21 typedef char* (*GetInterfaceNameFunction)(int interface_index, char* ifname); |
19 char* ifname); | |
20 | 22 |
21 NET_EXPORT bool GetNetworkListImpl( | 23 NET_EXPORT bool GetNetworkListImpl( |
22 NetworkInterfaceList* networks, | 24 NetworkInterfaceList* networks, |
23 int policy, | 25 int policy, |
24 const base::hash_set<int>& online_links, | 26 const base::hash_set<int>& online_links, |
25 const internal::AddressTrackerLinux::AddressMap& address_map, | 27 const internal::AddressTrackerLinux::AddressMap& address_map, |
26 GetInterfaceNameFunction get_interface_name); | 28 GetInterfaceNameFunction get_interface_name); |
27 | 29 |
28 } // namespace internal | 30 } // namespace internal |
29 } // namespace net | 31 } // namespace net |
30 | 32 |
31 #endif // NET_BASE_NET_UTIL_LINUX_H_ | 33 #endif // NET_BASE_NET_UTIL_LINUX_H_ |
OLD | NEW |