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

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

Issue 8689012: Message receiver on browser side that holds/starts the gamepad data provider (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix gypi order 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
« no previous file with comments | « no previous file | content/browser/renderer_host/gamepad_browser_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..2348bd6e009d2e51271ee19a282504286542c105
--- /dev/null
+++ b/content/browser/renderer_host/gamepad_browser_message_filter.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_BROWSER_MESSAGE_FILTER_H_
+#define CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_BROWSER_MESSAGE_FILTER_H_
+#pragma once
+
+#include "content/browser/browser_message_filter.h"
+#include "content/browser/gamepad/gamepad_provider.h"
+
+class GamepadBrowserMessageFilter : public BrowserMessageFilter {
+ public:
+ // BrowserMessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok);
Avi (use Gerrit) 2011/11/28 20:55:45 In the future, please mark overriding functions wi
+ GamepadBrowserMessageFilter();
+
+ private:
+ virtual ~GamepadBrowserMessageFilter();
+
+ void OnGamepadStartPolling(base::SharedMemoryHandle* renderer_handle);
+ void OnGamepadStopPolling();
+
+ scoped_refptr<gamepad::Provider> provider_;
+
+ DISALLOW_COPY_AND_ASSIGN(GamepadBrowserMessageFilter);
+};
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_BROWSER_MESSAGE_FILTER_H_
« no previous file with comments | « no previous file | content/browser/renderer_host/gamepad_browser_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698