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

Unified Diff: content/browser/renderer_host/gamepad_browser_message_filter.h

Issue 8345027: Big patch to implement Chromium-side of Gamepad support (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: minor tidying Created 9 years, 1 month 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
Index: content/browser/renderer_host/gamepad_browser_message_filter.h
diff --git a/content/browser/renderer_host/gamepad_browser_message_filter.h b/content/browser/renderer_host/gamepad_browser_message_filter.h
index dc991e0198a5888d99400646ba8d0e0f5b37bc9c..a1451cf17a189a521d3287731c37257fe640f8a3 100644
--- a/content/browser/renderer_host/gamepad_browser_message_filter.h
+++ b/content/browser/renderer_host/gamepad_browser_message_filter.h
@@ -7,11 +7,18 @@
#pragma once
#include "base/compiler_specific.h"
+#include "base/shared_memory.h"
#include "content/browser/browser_message_filter.h"
-#include "content/browser/gamepad/gamepad_provider.h"
+
+namespace content {
+
+class GamepadService;
+class RenderProcessHost;
class GamepadBrowserMessageFilter : public BrowserMessageFilter {
public:
+ GamepadBrowserMessageFilter(RenderProcessHost* rph);
+
// BrowserMessageFilter implementation.
virtual bool OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) OVERRIDE;
@@ -23,9 +30,12 @@ class GamepadBrowserMessageFilter : public BrowserMessageFilter {
void OnGamepadStartPolling(base::SharedMemoryHandle* renderer_handle);
void OnGamepadStopPolling();
- scoped_refptr<content::GamepadProvider> provider_;
+ GamepadService* gamepad_service_;
+ RenderProcessHost* render_process_host_;
DISALLOW_COPY_AND_ASSIGN(GamepadBrowserMessageFilter);
};
+} // namespace content
+
#endif // CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_BROWSER_MESSAGE_FILTER_H_
« no previous file with comments | « content/browser/gamepad/gamepad_service.cc ('k') | content/browser/renderer_host/gamepad_browser_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698