| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 friend class OnlineStatusReportThreadTask; | 38 friend class OnlineStatusReportThreadTask; |
| 39 | 39 |
| 40 // PowerManagerClient::Observer overrides. | 40 // PowerManagerClient::Observer overrides. |
| 41 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE; | 41 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE; |
| 42 | 42 |
| 43 virtual void SystemResumed() OVERRIDE; | 43 virtual void SystemResumed() OVERRIDE; |
| 44 | 44 |
| 45 // NetworkChangeNotifier overrides. | 45 // NetworkChangeNotifier overrides. |
| 46 virtual bool IsCurrentlyOffline() const OVERRIDE; | 46 virtual net::NetworkChangeNotifier::ConnectionType |
| 47 GetCurrentConnectionType() const OVERRIDE; |
| 47 | 48 |
| 48 // NetworkManagerObserver overrides: | 49 // NetworkManagerObserver overrides: |
| 49 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj) OVERRIDE; | 50 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj) OVERRIDE; |
| 50 | 51 |
| 51 // NetworkObserver overrides: | 52 // NetworkObserver overrides: |
| 52 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros, | 53 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros, |
| 53 const chromeos::Network* network) OVERRIDE; | 54 const chromeos::Network* network) OVERRIDE; |
| 54 | 55 |
| 55 // Initiate online status change reporting. | 56 // Initiate online status change reporting. |
| 56 void ReportOnlineStateChange(bool is_online); | 57 void ReportOnlineStateChange(bool is_online); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 81 // The last reported online state. | 82 // The last reported online state. |
| 82 bool is_online_; | 83 bool is_online_; |
| 83 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; | 84 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); | 86 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace chromeos | 89 } // namespace chromeos |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 91 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
| OLD | NEW |