Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/browser/chromeos/net/network_change_notifier_chromeos.h

Issue 8347016: chromeos: Simplify power supply info in PowerLibrary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Various comment fixes Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/low_battery_observer.cc ('k') | chrome/browser/chromeos/net/network_change_notifier_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698