#ifndef CONTENT_RENDERER_GAMEPAD_SHARED_MEMORY_READER_H_
#define CONTENT_RENDERER_GAMEPAD_SHARED_MEMORY_READER_H_
#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory.h"
#include "third_party/WebKit/public/platform/WebGamepads.h"
namespace content {
struct GamepadHardwareBuffer;
class GamepadSharedMemoryReader {
public:
GamepadSharedMemoryReader();
virtual ~GamepadSharedMemoryReader();
void SampleGamepads(blink::WebGamepads&);
private:
base::SharedMemoryHandle renderer_shared_memory_handle_;
scoped_ptr<base::SharedMemory> renderer_shared_memory_;
GamepadHardwareBuffer* gamepad_hardware_buffer_;
bool ever_interacted_with_;
};
}
#endif