Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: content/browser/gamepad/gamepad_service.h

Issue 2522843002: Convert Gamepad IPC messages into mojo interface. (Closed)
Patch Set: code rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/gamepad/gamepad_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gamepad/gamepad_service.h
diff --git a/content/browser/gamepad/gamepad_service.h b/content/browser/gamepad/gamepad_service.h
index b32b42d93030512d76baf16a086a2c8f0f327b46..a360411584dd27779cc7f0a0347470835a070d22 100644
--- a/content/browser/gamepad/gamepad_service.h
+++ b/content/browser/gamepad/gamepad_service.h
@@ -15,6 +15,7 @@
#include "base/threading/thread_checker.h"
#include "content/common/content_export.h"
#include "device/gamepad/gamepad_provider.h"
+#include "mojo/public/cpp/system/buffer.h"
namespace blink {
class WebGamepad;
@@ -74,6 +75,9 @@ class CONTENT_EXPORT GamepadService
base::SharedMemoryHandle GetSharedMemoryHandleForProcess(
base::ProcessHandle handle);
+ // Returns a new mojo::ScopedSharedBuffer handle of the gamepad data.
+ mojo::ScopedSharedBufferHandle GetSharedBufferHandle();
+
// Stop/join with the background thread in GamepadProvider |provider_|.
void Terminate();
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/gamepad/gamepad_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698