OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ADDRESS_TRACKER_LINUX_H_ | 5 #ifndef NET_BASE_ADDRESS_TRACKER_LINUX_H_ |
6 #define NET_BASE_ADDRESS_TRACKER_LINUX_H_ | 6 #define NET_BASE_ADDRESS_TRACKER_LINUX_H_ |
7 | 7 |
8 #include <sys/socket.h> // Needed to include netlink. | 8 #include <sys/socket.h> // Needed to include netlink. |
9 // Mask superfluous definition of |struct net|. This is fixed in Linux 2.6.38. | 9 // Mask superfluous definition of |struct net|. This is fixed in Linux 2.6.38. |
10 #define net net_kernel | 10 #define net net_kernel |
11 #include <linux/rtnetlink.h> | 11 #include <linux/rtnetlink.h> |
12 #undef net | 12 #undef net |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
19 #include "base/hash_tables.h" | 19 #include "base/containers/hash_tables.h" |
20 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
21 #include "base/synchronization/condition_variable.h" | 21 #include "base/synchronization/condition_variable.h" |
22 #include "base/synchronization/lock.h" | 22 #include "base/synchronization/lock.h" |
23 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
24 #include "net/base/network_change_notifier.h" | 24 #include "net/base/network_change_notifier.h" |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 namespace internal { | 27 namespace internal { |
28 | 28 |
29 // Keeps track of network interface addresses using rtnetlink. Used by | 29 // Keeps track of network interface addresses using rtnetlink. Used by |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 base::Lock is_offline_lock_; | 90 base::Lock is_offline_lock_; |
91 bool is_offline_; | 91 bool is_offline_; |
92 bool is_offline_initialized_; | 92 bool is_offline_initialized_; |
93 base::ConditionVariable is_offline_initialized_cv_; | 93 base::ConditionVariable is_offline_initialized_cv_; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace internal | 96 } // namespace internal |
97 } // namespace net | 97 } // namespace net |
98 | 98 |
99 #endif // NET_BASE_ADDRESS_TRACKER_LINUX_H_ | 99 #endif // NET_BASE_ADDRESS_TRACKER_LINUX_H_ |
OLD | NEW |