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

Side by Side Diff: content/browser/power_monitor_message_broadcaster.h

Issue 401083002: Initialize PowerMonitor on_power_battery intitial value for newly created processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_ 5 #ifndef CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
6 #define CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_ 6 #define CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/power_monitor/power_observer.h" 9 #include "base/power_monitor/power_observer.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 10 matching lines...) Expand all
21 : public base::PowerObserver { 21 : public base::PowerObserver {
22 public: 22 public:
23 explicit PowerMonitorMessageBroadcaster(IPC::Sender* sender); 23 explicit PowerMonitorMessageBroadcaster(IPC::Sender* sender);
24 virtual ~PowerMonitorMessageBroadcaster(); 24 virtual ~PowerMonitorMessageBroadcaster();
25 25
26 // Implement PowerObserver. 26 // Implement PowerObserver.
27 virtual void OnPowerStateChange(bool on_battery_power) OVERRIDE; 27 virtual void OnPowerStateChange(bool on_battery_power) OVERRIDE;
28 virtual void OnSuspend() OVERRIDE; 28 virtual void OnSuspend() OVERRIDE;
29 virtual void OnResume() OVERRIDE; 29 virtual void OnResume() OVERRIDE;
30 30
31 void Init();
32
31 private: 33 private:
32 IPC::Sender* sender_; 34 IPC::Sender* sender_;
33 35
34 DISALLOW_COPY_AND_ASSIGN(PowerMonitorMessageBroadcaster); 36 DISALLOW_COPY_AND_ASSIGN(PowerMonitorMessageBroadcaster);
35 }; 37 };
36 38
37 } // namespace content 39 } // namespace content
38 40
39 #endif // CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_ 41 #endif // CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/power_monitor_message_broadcaster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698