| 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/macros.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 11 #include "net/base/address_tracker_linux.h" | 12 #include "net/base/address_tracker_linux.h" |
| 12 #include "net/dns/dns_config_service.h" | 13 #include "net/dns/dns_config_service.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 | 16 |
| 16 class NetworkChangeNotifierLinux::Thread : public base::Thread { | 17 class NetworkChangeNotifierLinux::Thread : public base::Thread { |
| 17 public: | 18 public: |
| 18 explicit Thread(const std::unordered_set<std::string>& ignored_interfaces); | 19 explicit Thread(const std::unordered_set<std::string>& ignored_interfaces); |
| 19 ~Thread() override; | 20 ~Thread() override; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 NetworkChangeNotifierLinux::GetCurrentConnectionType() const { | 130 NetworkChangeNotifierLinux::GetCurrentConnectionType() const { |
| 130 return notifier_thread_->GetCurrentConnectionType(); | 131 return notifier_thread_->GetCurrentConnectionType(); |
| 131 } | 132 } |
| 132 | 133 |
| 133 const internal::AddressTrackerLinux* | 134 const internal::AddressTrackerLinux* |
| 134 NetworkChangeNotifierLinux::GetAddressTrackerInternal() const { | 135 NetworkChangeNotifierLinux::GetAddressTrackerInternal() const { |
| 135 return notifier_thread_->address_tracker(); | 136 return notifier_thread_->address_tracker(); |
| 136 } | 137 } |
| 137 | 138 |
| 138 } // namespace net | 139 } // namespace net |
| OLD | NEW |