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

Side by Side Diff: net/base/network_interfaces_posix.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: address matt's comments 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
« no previous file with comments | « net/base/network_interfaces_mac.cc ('k') | net/base/network_interfaces_posix.cc » ('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) 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_POSIX_H_ 5 #ifndef NET_BASE_NETWORK_INTERFACES_POSIX_H_
6 #define NET_BASE_NET_UTIL_POSIX_H_ 6 #define NET_BASE_NETWORK_INTERFACES_POSIX_H_
7 7
8 // This file is only used to expose some of the internals of 8 // This file is only used to expose some of the internals of
9 // net_util_posix.cc to net_util_linux.cc and net_util_mac.cc. 9 // network_interfaces_posix.cc to network_interfaces_linux.cc and network_interf aces_mac.cc.
10 10
11 #include <string> 11 #include <string>
12 12
13 struct sockaddr; 13 struct sockaddr;
14 14
15 namespace net { 15 namespace net {
16 namespace internal { 16 namespace internal {
17 #if !defined(OS_NACL) 17 #if !defined(OS_NACL)
18 bool ShouldIgnoreInterface(const std::string& name, int policy); 18 bool ShouldIgnoreInterface(const std::string& name, int policy);
19 bool IsLoopbackOrUnspecifiedAddress(const sockaddr* addr); 19 bool IsLoopbackOrUnspecifiedAddress(const sockaddr* addr);
20 #endif // !OS_NACL 20 #endif // !OS_NACL
21 21
22 } // namespace internal 22 } // namespace internal
23 } // namespace net 23 } // namespace net
24 24
25 #endif // NET_BASE_NET_UTIL_POSIX_H_ 25 #endif // NET_BASE_NETWORK_INTERFACES_POSIX_H_
OLDNEW
« no previous file with comments | « net/base/network_interfaces_mac.cc ('k') | net/base/network_interfaces_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698