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 #include "net/base/network_change_notifier_linux.h" | 5 #include "net/base/network_change_notifier_linux.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
9 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
10 #include "net/base/address_tracker_linux.h" | 11 #include "net/base/address_tracker_linux.h" |
11 #include "net/dns/dns_config_service.h" | 12 #include "net/dns/dns_config_service.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 class NetworkChangeNotifierLinux::Thread : public base::Thread { | 16 class NetworkChangeNotifierLinux::Thread : public base::Thread { |
16 public: | 17 public: |
17 explicit Thread(const base::hash_set<std::string>& ignored_interfaces); | 18 explicit Thread(const base::hash_set<std::string>& ignored_interfaces); |
18 ~Thread() override; | 19 ~Thread() override; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 NetworkChangeNotifierLinux::GetCurrentConnectionType() const { | 126 NetworkChangeNotifierLinux::GetCurrentConnectionType() const { |
126 return notifier_thread_->GetCurrentConnectionType(); | 127 return notifier_thread_->GetCurrentConnectionType(); |
127 } | 128 } |
128 | 129 |
129 const internal::AddressTrackerLinux* | 130 const internal::AddressTrackerLinux* |
130 NetworkChangeNotifierLinux::GetAddressTrackerInternal() const { | 131 NetworkChangeNotifierLinux::GetAddressTrackerInternal() const { |
131 return notifier_thread_->address_tracker(); | 132 return notifier_thread_->address_tracker(); |
132 } | 133 } |
133 | 134 |
134 } // namespace net | 135 } // namespace net |
OLD | NEW |