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 "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 public: | 45 public: |
46 ~NetworkChangeNotifierAndroid() override; | 46 ~NetworkChangeNotifierAndroid() override; |
47 | 47 |
48 // NetworkChangeNotifier: | 48 // NetworkChangeNotifier: |
49 ConnectionType GetCurrentConnectionType() const override; | 49 ConnectionType GetCurrentConnectionType() const override; |
50 // Requires ACCESS_WIFI_STATE permission in order to provide precise WiFi link | 50 // Requires ACCESS_WIFI_STATE permission in order to provide precise WiFi link |
51 // speed. | 51 // speed. |
52 void GetCurrentMaxBandwidthAndConnectionType( | 52 void GetCurrentMaxBandwidthAndConnectionType( |
53 double* max_bandwidth_mbps, | 53 double* max_bandwidth_mbps, |
54 ConnectionType* connection_type) const override; | 54 ConnectionType* connection_type) const override; |
| 55 bool AreNetworkHandlesCurrentlySupported() const override; |
55 void GetCurrentConnectedNetworks(NetworkList* network_list) const override; | 56 void GetCurrentConnectedNetworks(NetworkList* network_list) const override; |
56 ConnectionType GetCurrentNetworkConnectionType( | 57 ConnectionType GetCurrentNetworkConnectionType( |
57 NetworkHandle network) const override; | 58 NetworkHandle network) const override; |
58 NetworkHandle GetCurrentDefaultNetwork() const override; | 59 NetworkHandle GetCurrentDefaultNetwork() const override; |
59 | 60 |
60 // NetworkChangeNotifierDelegateAndroid::Observer: | 61 // NetworkChangeNotifierDelegateAndroid::Observer: |
61 void OnConnectionTypeChanged() override; | 62 void OnConnectionTypeChanged() override; |
62 void OnMaxBandwidthChanged(double max_bandwidth_mbps, | 63 void OnMaxBandwidthChanged(double max_bandwidth_mbps, |
63 ConnectionType type) override; | 64 ConnectionType type) override; |
64 void OnNetworkConnected(NetworkHandle network) override; | 65 void OnNetworkConnected(NetworkHandle network) override; |
(...skipping 20 matching lines...) Expand all Loading... |
85 | 86 |
86 NetworkChangeNotifierDelegateAndroid* const delegate_; | 87 NetworkChangeNotifierDelegateAndroid* const delegate_; |
87 scoped_ptr<DnsConfigServiceThread> dns_config_service_thread_; | 88 scoped_ptr<DnsConfigServiceThread> dns_config_service_thread_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierAndroid); | 90 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierAndroid); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace net | 93 } // namespace net |
93 | 94 |
94 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ | 95 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ |
OLD | NEW |