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_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ | 5 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ |
6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ | 6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "net/android/network_change_notifier_delegate_android.h" | 13 #include "net/android/network_change_notifier_delegate_android.h" |
| 14 #include "net/base/net_export.h" |
14 #include "net/base/network_change_notifier.h" | 15 #include "net/base/network_change_notifier.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 struct DnsConfig; | 19 struct DnsConfig; |
19 class NetworkChangeNotifierAndroidTest; | 20 class NetworkChangeNotifierAndroidTest; |
20 class NetworkChangeNotifierFactoryAndroid; | 21 class NetworkChangeNotifierFactoryAndroid; |
21 | 22 |
22 // NetworkChangeNotifierAndroid observes network events from the Android | 23 // NetworkChangeNotifierAndroid observes network events from the Android |
23 // notification system and forwards them to observers. | 24 // notification system and forwards them to observers. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 NetworkChangeNotifierDelegateAndroid* const delegate_; | 96 NetworkChangeNotifierDelegateAndroid* const delegate_; |
96 std::unique_ptr<DnsConfigServiceThread> dns_config_service_thread_; | 97 std::unique_ptr<DnsConfigServiceThread> dns_config_service_thread_; |
97 bool force_network_handles_supported_for_testing_; | 98 bool force_network_handles_supported_for_testing_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierAndroid); | 100 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierAndroid); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace net | 103 } // namespace net |
103 | 104 |
104 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ | 105 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ |
OLD | NEW |