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

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

Issue 1154323007: Split network_interfaces.h off of net_utils.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ip_util
Patch Set: fix mac unittest Created 5 years, 6 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
OLDNEW
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_MAC_H_ 5 #ifndef NET_BASE_NETWORK_INTERFACES_MAC_H_
6 #define NET_BASE_NET_UTIL_MAC_H_ 6 #define NET_BASE_NETWORK_INTERFACES_MAC_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_mac.cc to tests. 9 // of network_interfaces_mac.cc to tests.
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 #include "net/base/net_util.h" 13 #include "net/base/net_util.h"
mmenke 2015/06/03 15:12:38 Should include network_interface_mac.h instead of
14 14
15 struct ifaddrs; 15 struct ifaddrs;
16 struct sockaddr; 16 struct sockaddr;
17 17
18 namespace net { 18 namespace net {
19 namespace internal { 19 namespace internal {
20 20
21 class NET_EXPORT IPAttributesGetterMac { 21 class NET_EXPORT IPAttributesGetterMac {
22 public: 22 public:
23 IPAttributesGetterMac() {} 23 IPAttributesGetterMac() {}
24 virtual ~IPAttributesGetterMac() {} 24 virtual ~IPAttributesGetterMac() {}
25 virtual bool IsInitialized() const = 0; 25 virtual bool IsInitialized() const = 0;
26 virtual bool GetIPAttributes(const char* ifname, 26 virtual bool GetIPAttributes(const char* ifname,
27 const sockaddr* sock_addr, 27 const sockaddr* sock_addr,
28 int* native_attributes) = 0; 28 int* native_attributes) = 0;
29 29
30 private: 30 private:
31 DISALLOW_COPY_AND_ASSIGN(IPAttributesGetterMac); 31 DISALLOW_COPY_AND_ASSIGN(IPAttributesGetterMac);
32 }; 32 };
33 33
34 NET_EXPORT bool GetNetworkListImpl(NetworkInterfaceList* networks, 34 NET_EXPORT bool GetNetworkListImpl(NetworkInterfaceList* networks,
35 int policy, 35 int policy,
36 const ifaddrs* interfaces, 36 const ifaddrs* interfaces,
37 IPAttributesGetterMac* ip_attributes_getter); 37 IPAttributesGetterMac* ip_attributes_getter);
38 38
39 } // namespace internal 39 } // namespace internal
40 } // namespace net 40 } // namespace net
41 41
42 #endif // NET_BASE_NET_UTIL_MAC_H_ 42 #endif // NET_BASE_NETWORK_INTERFACES_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698