| 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 CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // from the power manager and the network manager. | 29 // from the power manager and the network manager. |
| 30 void Init(); | 30 void Init(); |
| 31 | 31 |
| 32 // Shutdowns the network change notifier. Stops observing changes from | 32 // Shutdowns the network change notifier. Stops observing changes from |
| 33 // the power manager and the network manager. | 33 // the power manager and the network manager. |
| 34 void Shutdown(); | 34 void Shutdown(); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 friend class OnlineStatusReportThreadTask; | 37 friend class OnlineStatusReportThreadTask; |
| 38 | 38 |
| 39 class DnsConfigServiceChromeos; |
| 40 |
| 39 // PowerManagerClient::Observer overrides. | 41 // PowerManagerClient::Observer overrides. |
| 40 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE; | 42 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE; |
| 41 | 43 |
| 42 virtual void SystemResumed() OVERRIDE; | 44 virtual void SystemResumed() OVERRIDE; |
| 43 | 45 |
| 44 // NetworkChangeNotifier overrides. | 46 // NetworkChangeNotifier overrides. |
| 45 virtual net::NetworkChangeNotifier::ConnectionType | 47 virtual net::NetworkChangeNotifier::ConnectionType |
| 46 GetCurrentConnectionType() const OVERRIDE; | 48 GetCurrentConnectionType() const OVERRIDE; |
| 47 | 49 |
| 48 // NetworkManagerObserver overrides: | 50 // NetworkManagerObserver overrides: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 77 bool has_active_network_; | 79 bool has_active_network_; |
| 78 // Current active network's connection state. | 80 // Current active network's connection state. |
| 79 chromeos::ConnectionState connection_state_; | 81 chromeos::ConnectionState connection_state_; |
| 80 // Current active network's connection type. | 82 // Current active network's connection type. |
| 81 net::NetworkChangeNotifier::ConnectionType connection_type_; | 83 net::NetworkChangeNotifier::ConnectionType connection_type_; |
| 82 // Current active network's service path. | 84 // Current active network's service path. |
| 83 std::string service_path_; | 85 std::string service_path_; |
| 84 // Current active network's IP address. | 86 // Current active network's IP address. |
| 85 std::string ip_address_; | 87 std::string ip_address_; |
| 86 | 88 |
| 89 scoped_ptr<DnsConfigServiceChromeos> dns_config_service_; |
| 90 |
| 87 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; | 91 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; |
| 88 | 92 |
| 89 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); | 93 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); |
| 90 }; | 94 }; |
| 91 | 95 |
| 92 } // namespace chromeos | 96 } // namespace chromeos |
| 93 | 97 |
| 94 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| OLD | NEW |