OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_H_ | 5 #ifndef DEVICE_HID_HID_CONNECTION_H_ |
6 #define DEVICE_HID_HID_CONNECTION_H_ | 6 #define DEVICE_HID_HID_CONNECTION_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
12 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
13 #include "device/hid/hid_device_info.h" | 15 #include "device/hid/hid_device_info.h" |
14 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
15 | 17 |
16 namespace device { | 18 namespace device { |
17 | 19 |
18 class HidConnection : public base::RefCountedThreadSafe<HidConnection> { | 20 class HidConnection : public base::RefCountedThreadSafe<HidConnection> { |
19 public: | 21 public: |
20 enum SpecialReportIds { | 22 enum SpecialReportIds { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 struct PendingHidRead { | 106 struct PendingHidRead { |
105 PendingHidRead(); | 107 PendingHidRead(); |
106 ~PendingHidRead(); | 108 ~PendingHidRead(); |
107 | 109 |
108 HidConnection::ReadCallback callback; | 110 HidConnection::ReadCallback callback; |
109 }; | 111 }; |
110 | 112 |
111 } // namespace device | 113 } // namespace device |
112 | 114 |
113 #endif // DEVICE_HID_HID_CONNECTION_H_ | 115 #endif // DEVICE_HID_HID_CONNECTION_H_ |
OLD | NEW |