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

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

Issue 9514017: Cleanup: More random cleanup for gamepad code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: revert content export removal Created 8 years, 10 months 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/gamepad/gamepad_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gamepad/gamepad_provider.h
===================================================================
--- content/browser/gamepad/gamepad_provider.h (revision 124050)
+++ content/browser/gamepad/gamepad_provider.h (working copy)
@@ -11,21 +11,20 @@
#include "base/shared_memory.h"
#include "base/synchronization/lock.h"
#include "base/system_monitor/system_monitor.h"
-#include "content/browser/gamepad/data_fetcher.h"
#include "content/common/content_export.h"
-#include "content/common/gamepad_hardware_buffer.h"
namespace base {
class Thread;
}
-struct GamepadMsg_Updated_Params;
-
namespace content {
+class GamepadDataFetcher;
+struct GamepadHardwareBuffer;
+
class CONTENT_EXPORT GamepadProvider :
- public base::RefCountedThreadSafe<GamepadProvider>,
- public base::SystemMonitor::DevicesChangedObserver {
+ public base::RefCountedThreadSafe<GamepadProvider>,
+ public base::SystemMonitor::DevicesChangedObserver {
public:
explicit GamepadProvider(GamepadDataFetcher* fetcher);
@@ -37,6 +36,9 @@
void Pause();
void Resume();
+ // base::SystemMonitor::DevicesChangedObserver implementation.
+ virtual void OnDevicesChanged() OVERRIDE;
+
private:
friend class base::RefCountedThreadSafe<GamepadProvider>;
@@ -49,8 +51,6 @@
void DoPoll();
void ScheduleDoPoll();
- virtual void OnDevicesChanged() OVERRIDE;
-
GamepadHardwareBuffer* SharedMemoryAsHardwareBuffer();
enum { kDesiredSamplingIntervalMs = 16 };
« no previous file with comments | « no previous file | content/browser/gamepad/gamepad_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698