OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 12 matching lines...) Expand all Loading... |
23 public chromeos::NetworkLibrary::NetworkObserver, | 23 public chromeos::NetworkLibrary::NetworkObserver, |
24 public chromeos::NetworkLibrary::NetworkManagerObserver { | 24 public chromeos::NetworkLibrary::NetworkManagerObserver { |
25 public: | 25 public: |
26 NetworkChangeNotifierChromeos(); | 26 NetworkChangeNotifierChromeos(); |
27 virtual ~NetworkChangeNotifierChromeos(); | 27 virtual ~NetworkChangeNotifierChromeos(); |
28 | 28 |
29 private: | 29 private: |
30 friend class OnlineStatusReportThreadTask; | 30 friend class OnlineStatusReportThreadTask; |
31 | 31 |
32 // PowerLibrary::Observer overrides. | 32 // PowerLibrary::Observer overrides. |
33 virtual void PowerChanged(PowerLibrary* obj) OVERRIDE; | 33 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE; |
34 virtual void SystemResumed() OVERRIDE; | 34 virtual void SystemResumed() OVERRIDE; |
35 | 35 |
36 // NetworkChangeNotifier overrides. | 36 // NetworkChangeNotifier overrides. |
37 virtual bool IsCurrentlyOffline() const OVERRIDE; | 37 virtual bool IsCurrentlyOffline() const OVERRIDE; |
38 | 38 |
39 // NetworkManagerObserver overrides: | 39 // NetworkManagerObserver overrides: |
40 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj) OVERRIDE; | 40 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj) OVERRIDE; |
41 | 41 |
42 // NetworkObserver overrides: | 42 // NetworkObserver overrides: |
43 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros, | 43 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros, |
(...skipping 24 matching lines...) Expand all Loading... |
68 // Current active network's IP address. | 68 // Current active network's IP address. |
69 std::string ip_address_; | 69 std::string ip_address_; |
70 | 70 |
71 OnlineStatusReportThreadTask* online_notification_task_; | 71 OnlineStatusReportThreadTask* online_notification_task_; |
72 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); | 72 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace net | 75 } // namespace net |
76 | 76 |
77 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
OLD | NEW |