| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_HID_HID_CONNECTION_WIN_H_ | 5 #ifndef DEVICE_HID_HID_CONNECTION_WIN_H_ |
| 6 #define DEVICE_HID_HID_CONNECTION_WIN_H_ | 6 #define DEVICE_HID_HID_CONNECTION_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <stddef.h> |
| 10 #include <stdint.h> |
| 9 | 11 |
| 10 #include <set> | 12 #include <set> |
| 11 | 13 |
| 14 #include "base/macros.h" |
| 12 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
| 13 #include "device/hid/hid_connection.h" | 16 #include "device/hid/hid_connection.h" |
| 14 | 17 |
| 15 namespace device { | 18 namespace device { |
| 16 | 19 |
| 17 struct PendingHidTransfer; | 20 struct PendingHidTransfer; |
| 18 | 21 |
| 19 class HidConnectionWin : public HidConnection { | 22 class HidConnectionWin : public HidConnection { |
| 20 public: | 23 public: |
| 21 HidConnectionWin(scoped_refptr<HidDeviceInfo> device_info, | 24 HidConnectionWin(scoped_refptr<HidDeviceInfo> device_info, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 base::win::ScopedHandle file_; | 57 base::win::ScopedHandle file_; |
| 55 | 58 |
| 56 std::set<scoped_refptr<PendingHidTransfer> > transfers_; | 59 std::set<scoped_refptr<PendingHidTransfer> > transfers_; |
| 57 | 60 |
| 58 DISALLOW_COPY_AND_ASSIGN(HidConnectionWin); | 61 DISALLOW_COPY_AND_ASSIGN(HidConnectionWin); |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 } // namespace device | 64 } // namespace device |
| 62 | 65 |
| 63 #endif // DEVICE_HID_HID_CONNECTION_WIN_H_ | 66 #endif // DEVICE_HID_HID_CONNECTION_WIN_H_ |
| OLD | NEW |