1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_BROWSER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_BROWSER_MESSAGE_FILTER_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/shared_memory.h"
10 #include "content/public/browser/browser_message_filter.h"
15 class RenderProcessHost;
17 class GamepadBrowserMessageFilter : public BrowserMessageFilter {
19 GamepadBrowserMessageFilter();
21 // BrowserMessageFilter implementation.
22 virtual bool OnMessageReceived(const IPC::Message& message,
23 bool* message_was_ok) OVERRIDE;
26 virtual ~GamepadBrowserMessageFilter();
28 void OnGamepadStartPolling(base::SharedMemoryHandle* renderer_handle);
29 void OnGamepadStopPolling();
33 DISALLOW_COPY_AND_ASSIGN(GamepadBrowserMessageFilter);
36 } // namespace content
38 #endif // CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_BROWSER_MESSAGE_FILTER_H_