| 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 15 matching lines...) Expand all Loading... |
| 26 virtual ~NetworkChangeNotifierChromeos(); | 26 virtual ~NetworkChangeNotifierChromeos(); |
| 27 | 27 |
| 28 // Starts observing changes from the network state handler. | 28 // Starts observing changes from the network state handler. |
| 29 void Initialize(); | 29 void Initialize(); |
| 30 | 30 |
| 31 // Stops observing changes from the network state handler. | 31 // Stops observing changes from the network state handler. |
| 32 void Shutdown(); | 32 void Shutdown(); |
| 33 | 33 |
| 34 // NetworkChangeNotifier overrides. | 34 // NetworkChangeNotifier overrides. |
| 35 virtual net::NetworkChangeNotifier::ConnectionType | 35 virtual net::NetworkChangeNotifier::ConnectionType |
| 36 GetCurrentConnectionType() const OVERRIDE; | 36 GetCurrentConnectionType() const override; |
| 37 | 37 |
| 38 // PowerManagerClient::Observer overrides. | 38 // PowerManagerClient::Observer overrides. |
| 39 virtual void SuspendDone(const base::TimeDelta& sleep_duration) OVERRIDE; | 39 virtual void SuspendDone(const base::TimeDelta& sleep_duration) override; |
| 40 | 40 |
| 41 // NetworkStateHandlerObserver overrides. | 41 // NetworkStateHandlerObserver overrides. |
| 42 virtual void DefaultNetworkChanged( | 42 virtual void DefaultNetworkChanged( |
| 43 const chromeos::NetworkState* default_network) OVERRIDE; | 43 const chromeos::NetworkState* default_network) override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 FRIEND_TEST_ALL_PREFIXES(NetworkChangeNotifierChromeosTest, | 46 FRIEND_TEST_ALL_PREFIXES(NetworkChangeNotifierChromeosTest, |
| 47 ConnectionTypeFromShill); | 47 ConnectionTypeFromShill); |
| 48 friend class NetworkChangeNotifierChromeosUpdateTest; | 48 friend class NetworkChangeNotifierChromeosUpdateTest; |
| 49 | 49 |
| 50 class DnsConfigService; | 50 class DnsConfigService; |
| 51 | 51 |
| 52 // Updates the notifier state based on a default network update. | 52 // Updates the notifier state based on a default network update. |
| 53 // |connection_type_changed| is set to true if we must report a connection | 53 // |connection_type_changed| is set to true if we must report a connection |
| (...skipping 25 matching lines...) Expand all Loading... |
| 79 std::string service_path_; | 79 std::string service_path_; |
| 80 | 80 |
| 81 scoped_ptr<DnsConfigService> dns_config_service_; | 81 scoped_ptr<DnsConfigService> dns_config_service_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); | 83 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace chromeos | 86 } // namespace chromeos |
| 87 | 87 |
| 88 #endif // CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 88 #endif // CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| OLD | NEW |