#ifndef CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
#include "extensions/browser/extension_function.h"
namespace extensions {
class PowerRequestKeepAwakeFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("power.requestKeepAwake", POWER_REQUESTKEEPAWAKE)
protected:
virtual ~PowerRequestKeepAwakeFunction() {}
virtual bool RunImpl() OVERRIDE;
};
class PowerReleaseKeepAwakeFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("power.releaseKeepAwake", POWER_RELEASEKEEPAWAKE)
protected:
virtual ~PowerReleaseKeepAwakeFunction() {}
virtual bool RunImpl() OVERRIDE;
};
}
#endif