Revert 269361 "Fix WebURLLoaderImpl::Context leak if a pending r..."
[chromium-blink-merge.git] / device / hid / hid_service_win.h
blob8f18765032835853c728cefffc8c931bb55cf1e6
1 // Copyright 2014 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 DEVICE_HID_HID_SERVICE_WIN_H_
6 #define DEVICE_HID_HID_SERVICE_WIN_H_
8 #include <map>
10 #include "device/hid/hid_device_info.h"
11 #include "device/hid/hid_service.h"
13 namespace device {
15 class HidConnection;
17 class HidServiceWin : public HidService {
18 public:
19 HidServiceWin();
21 virtual void GetDevices(std::vector<HidDeviceInfo>* devices) OVERRIDE;
23 virtual scoped_refptr<HidConnection> Connect(const HidDeviceId& device_id)
24 OVERRIDE;
26 private:
27 virtual ~HidServiceWin();
29 void Enumerate();
30 void PlatformAddDevice(const std::string& device_path);
31 void PlatformRemoveDevice(const std::string& device_path);
33 DISALLOW_COPY_AND_ASSIGN(HidServiceWin);
36 } // namespace device
38 #endif // DEVICE_HID_HID_SERVICE_WIN_H_