| 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 CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // Starts observing changes from the network state handler. | 31 // Starts observing changes from the network state handler. |
| 32 void Initialize(); | 32 void Initialize(); |
| 33 | 33 |
| 34 // Stops observing changes from the network state handler. | 34 // Stops observing changes from the network state handler. |
| 35 void Shutdown(); | 35 void Shutdown(); |
| 36 | 36 |
| 37 // NetworkChangeNotifier overrides. | 37 // NetworkChangeNotifier overrides. |
| 38 net::NetworkChangeNotifier::ConnectionType GetCurrentConnectionType() | 38 net::NetworkChangeNotifier::ConnectionType GetCurrentConnectionType() |
| 39 const override; | 39 const override; |
| 40 double GetCurrentMaxBandwidth() const override; | 40 void GetCurrentMaxBandwidthAndConnectionType( |
| 41 double* max_bandwidth_mbps, |
| 42 ConnectionType* connection_type) const override; |
| 41 | 43 |
| 42 // PowerManagerClient::Observer overrides. | 44 // PowerManagerClient::Observer overrides. |
| 43 void SuspendDone(const base::TimeDelta& sleep_duration) override; | 45 void SuspendDone(const base::TimeDelta& sleep_duration) override; |
| 44 | 46 |
| 45 // NetworkStateHandlerObserver overrides. | 47 // NetworkStateHandlerObserver overrides. |
| 46 void DefaultNetworkChanged( | 48 void DefaultNetworkChanged( |
| 47 const chromeos::NetworkState* default_network) override; | 49 const chromeos::NetworkState* default_network) override; |
| 48 | 50 |
| 49 private: | 51 private: |
| 50 FRIEND_TEST_ALL_PREFIXES(NetworkChangeNotifierChromeosTest, | 52 FRIEND_TEST_ALL_PREFIXES(NetworkChangeNotifierChromeosTest, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // For setting up network refresh polling callbacks. | 109 // For setting up network refresh polling callbacks. |
| 108 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 110 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 109 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_ptr_factory_; | 111 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_ptr_factory_; |
| 110 | 112 |
| 111 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); | 113 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace chromeos | 116 } // namespace chromeos |
| 115 | 117 |
| 116 #endif // CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 118 #endif // CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| OLD | NEW |