Index: device/gamepad/gamepad_shared_buffer.h |
diff --git a/device/gamepad/gamepad_shared_buffer.h b/device/gamepad/gamepad_shared_buffer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..04cb911df969e107bbeb82ef6831e3abaa6ba2ee |
--- /dev/null |
+++ b/device/gamepad/gamepad_shared_buffer.h |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef DEVICE_GAMEPAD_SHARED_BUFFER_H_ |
+#define DEVICE_GAMEPAD_SHARED_BUFFER_H_ |
+ |
+#include "base/memory/shared_memory.h" |
+#include "device/gamepad/gamepad_export.h" |
+#include "third_party/WebKit/public/platform/WebGamepads.h" |
+ |
+namespace device { |
+ |
+class DEVICE_GAMEPAD_EXPORT GamepadSharedBuffer { |
+ public: |
+ virtual ~GamepadSharedBuffer() {} |
+ |
+ virtual base::SharedMemory* shared_memory() = 0; |
+ virtual blink::WebGamepads* buffer() = 0; |
+ |
+ virtual void WriteBegin() = 0; |
+ virtual void WriteEnd() = 0; |
+}; |
+ |
+} // namespace device |
+ |
+#endif // DEVICE_GAMEPAD_SHARED_BUFFER_H_ |