Roll src/third_party/WebKit 3aa9dd9:183b2b0 (svn 201777:201778)
[chromium-blink-merge.git] / net / base / network_interfaces_posix.h
blob3fe4977abbeb7adc003d9e7ec17b12a1da216c7d
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_POSIX_H_
6 #define NET_BASE_NETWORK_INTERFACES_POSIX_H_
8 // This file is only used to expose some of the internals of
9 // network_interfaces_posix.cc to network_interfaces_linux.cc and network_interfaces_mac.cc.
11 #include <string>
13 struct sockaddr;
15 namespace net {
16 namespace internal {
17 #if !defined(OS_NACL)
18 bool ShouldIgnoreInterface(const std::string& name, int policy);
19 bool IsLoopbackOrUnspecifiedAddress(const sockaddr* addr);
20 #endif // !OS_NACL
22 } // namespace internal
23 } // namespace net
25 #endif // NET_BASE_NETWORK_INTERFACES_POSIX_H_