#ifndef CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
#define CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
#include "base/basictypes.h"
#include "base/power_monitor/power_observer.h"
#include "content/common/content_export.h"
namespace IPC {
class Sender;
}
namespace content {
class CONTENT_EXPORT PowerMonitorMessageBroadcaster
: public base::PowerObserver {
public:
explicit PowerMonitorMessageBroadcaster(IPC::Sender* sender);
virtual ~PowerMonitorMessageBroadcaster();
virtual void OnPowerStateChange(bool on_battery_power) OVERRIDE;
virtual void OnSuspend() OVERRIDE;
virtual void OnResume() OVERRIDE;
private:
IPC::Sender* sender_;
DISALLOW_COPY_AND_ASSIGN(PowerMonitorMessageBroadcaster);
};
}
#endif