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 EXTENSIONS_BROWSER_API_HID_HID_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_HID_HID_API_H_ |
6 #define EXTENSIONS_BROWSER_API_HID_HID_API_H_ | 6 #define EXTENSIONS_BROWSER_API_HID_HID_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "extensions/browser/api/api_resource_manager.h" | 12 #include "extensions/browser/api/api_resource_manager.h" |
13 #include "extensions/browser/api/async_api_function.h" | 13 #include "extensions/browser/api/async_api_function.h" |
14 #include "extensions/browser/api/hid/hid_connection_resource.h" | 14 #include "extensions/browser/api/hid/hid_connection_resource.h" |
15 #include "extensions/browser/api/hid/hid_device_manager.h" | 15 #include "extensions/browser/api/hid/hid_device_manager.h" |
16 #include "extensions/common/api/hid.h" | 16 #include "extensions/common/api/hid.h" |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 class IOBuffer; |
20 class IOBufferWithSize; | |
21 | |
22 } // namespace net | 20 } // namespace net |
23 | 21 |
24 namespace extensions { | 22 namespace extensions { |
25 | 23 |
26 class HidAsyncApiFunction : public AsyncApiFunction { | 24 class HidAsyncApiFunction : public AsyncApiFunction { |
27 public: | 25 public: |
28 HidAsyncApiFunction(); | 26 HidAsyncApiFunction(); |
29 | 27 |
30 virtual bool PrePrepare() OVERRIDE; | 28 virtual bool PrePrepare() OVERRIDE; |
31 virtual bool Respond() OVERRIDE; | 29 virtual bool Respond() OVERRIDE; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 void OnFinished(bool success); | 178 void OnFinished(bool success); |
181 | 179 |
182 scoped_ptr<core_api::hid::SendFeatureReport::Params> parameters_; | 180 scoped_ptr<core_api::hid::SendFeatureReport::Params> parameters_; |
183 | 181 |
184 DISALLOW_COPY_AND_ASSIGN(HidSendFeatureReportFunction); | 182 DISALLOW_COPY_AND_ASSIGN(HidSendFeatureReportFunction); |
185 }; | 183 }; |
186 | 184 |
187 } // namespace extensions | 185 } // namespace extensions |
188 | 186 |
189 #endif // EXTENSIONS_BROWSER_API_HID_HID_API_H_ | 187 #endif // EXTENSIONS_BROWSER_API_HID_HID_API_H_ |
OLD | NEW |