| 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 #include <stddef.h> |
| 13 | 14 |
| 14 #include <map> | 15 #include <map> |
| 15 | 16 |
| 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/containers/hash_tables.h" | 19 #include "base/containers/hash_tables.h" |
| 20 #include "base/macros.h" |
| 20 #include "base/message_loop/message_loop.h" | 21 #include "base/message_loop/message_loop.h" |
| 21 #include "base/synchronization/condition_variable.h" | 22 #include "base/synchronization/condition_variable.h" |
| 22 #include "base/synchronization/lock.h" | 23 #include "base/synchronization/lock.h" |
| 23 #include "base/threading/thread_checker.h" | 24 #include "base/threading/thread_checker.h" |
| 24 #include "net/base/ip_address_number.h" | 25 #include "net/base/ip_address_number.h" |
| 25 #include "net/base/network_change_notifier.h" | 26 #include "net/base/network_change_notifier.h" |
| 26 | 27 |
| 27 namespace net { | 28 namespace net { |
| 28 namespace internal { | 29 namespace internal { |
| 29 | 30 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 int threads_waiting_for_connection_type_initialization_; | 173 int threads_waiting_for_connection_type_initialization_; |
| 173 | 174 |
| 174 // Used to verify single-threaded access in non-tracking mode. | 175 // Used to verify single-threaded access in non-tracking mode. |
| 175 base::ThreadChecker thread_checker_; | 176 base::ThreadChecker thread_checker_; |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace internal | 179 } // namespace internal |
| 179 } // namespace net | 180 } // namespace net |
| 180 | 181 |
| 181 #endif // NET_BASE_ADDRESS_TRACKER_LINUX_H_ | 182 #endif // NET_BASE_ADDRESS_TRACKER_LINUX_H_ |
| OLD | NEW |