[Cronet] Allow multiple src-dir arguments for jar_src.py.
[chromium-blink-merge.git] / net / base / network_interfaces_mac.h
blob096134c1d424c8d75204e359eaab03c60836154b
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
3 // found in the LICENSE file.
5 #ifndef NET_BASE_NETWORK_INTERFACES_MAC_H_
6 #define NET_BASE_NETWORK_INTERFACES_MAC_H_
8 // This file is only used to expose some of the internals
9 // of network_interfaces_mac.cc to tests.
11 #include "base/macros.h"
12 #include "net/base/net_export.h"
13 #include "net/base/network_interfaces.h"
15 struct ifaddrs;
16 struct sockaddr;
18 namespace net {
19 namespace internal {
21 class NET_EXPORT IPAttributesGetterMac {
22 public:
23 IPAttributesGetterMac() {}
24 virtual ~IPAttributesGetterMac() {}
25 virtual bool IsInitialized() const = 0;
26 virtual bool GetIPAttributes(const char* ifname,
27 const sockaddr* sock_addr,
28 int* native_attributes) = 0;
30 private:
31 DISALLOW_COPY_AND_ASSIGN(IPAttributesGetterMac);
34 NET_EXPORT bool GetNetworkListImpl(NetworkInterfaceList* networks,
35 int policy,
36 const ifaddrs* interfaces,
37 IPAttributesGetterMac* ip_attributes_getter);
39 } // namespace internal
40 } // namespace net
42 #endif // NET_BASE_NETWORK_INTERFACES_MAC_H_