Remove PlatformFile from profile_browsertest
[chromium-blink-merge.git] / content / browser / gamepad / gamepad_platform_data_fetcher.h
blob247306295e78dce7b31891c189e6a49e431ab744
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 // Define the default data fetcher that GamepadProvider will use if none is
6 // supplied. (GamepadPlatformDataFetcher).
8 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_
9 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "content/browser/gamepad/gamepad_data_fetcher.h"
15 #if defined(OS_WIN)
16 #include "content/browser/gamepad/gamepad_platform_data_fetcher_win.h"
17 #elif defined(OS_MACOSX)
18 #include "content/browser/gamepad/gamepad_platform_data_fetcher_mac.h"
19 #elif defined(OS_LINUX)
20 #include "content/browser/gamepad/gamepad_platform_data_fetcher_linux.h"
21 #endif
23 namespace content {
25 #if defined(OS_WIN)
27 typedef GamepadPlatformDataFetcherWin GamepadPlatformDataFetcher;
29 #elif defined(OS_MACOSX)
31 typedef GamepadPlatformDataFetcherMac GamepadPlatformDataFetcher;
33 #elif defined(OS_LINUX) && defined(USE_UDEV)
35 typedef GamepadPlatformDataFetcherLinux GamepadPlatformDataFetcher;
37 #else
39 class GamepadDataFetcherEmpty : public GamepadDataFetcher {
40 public:
41 GamepadDataFetcherEmpty();
43 virtual void GetGamepadData(blink::WebGamepads* pads,
44 bool devices_changed_hint) OVERRIDE;
46 private:
47 DISALLOW_COPY_AND_ASSIGN(GamepadDataFetcherEmpty);
49 typedef GamepadDataFetcherEmpty GamepadPlatformDataFetcher;
51 #endif
53 } // namespace content
55 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_