#ifndef CHROME_BROWSER_CHROMEOS_DBUS_DISPLAY_POWER_SERVICE_PROVIDER_H_
#define CHROME_BROWSER_CHROMEOS_DBUS_DISPLAY_POWER_SERVICE_PROVIDER_H_
#include <string>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/dbus/cros_dbus_service.h"
#include "dbus/exported_object.h"
namespace dbus {
class MethodCall;
class Response;
}
namespace chromeos {
class DisplayPowerServiceProvider
: public CrosDBusService::ServiceProviderInterface {
public:
DisplayPowerServiceProvider();
virtual ~DisplayPowerServiceProvider();
virtual void Start(
scoped_refptr<dbus::ExportedObject> exported_object) OVERRIDE;
private:
void OnExported(const std::string& interface_name,
const std::string& method_name,
bool success);
void SetDisplayPower(dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender);
void SetDisplaySoftwareDimming(
dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender);
base::WeakPtrFactory<DisplayPowerServiceProvider> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DisplayPowerServiceProvider);
};
}
#endif