#ifndef CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
#include "content/public/browser/browser_message_filter.h"
namespace content {
class VibrationProvider;
class VibrationMessageFilter : public BrowserMessageFilter {
public:
VibrationMessageFilter();
private:
virtual ~VibrationMessageFilter();
virtual bool OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) OVERRIDE;
void OnVibrate(int64 milliseconds);
void OnCancelVibration();
static VibrationProvider* CreateProvider();
scoped_ptr<VibrationProvider> provider_;
DISALLOW_COPY_AND_ASSIGN(VibrationMessageFilter);
};
}
#endif