| 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 CHROME_BROWSER_EXTENSIONS_API_HID_HID_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HID_HID_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_HID_HID_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_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 "chrome/browser/extensions/api/api_function.h" | |
| 13 #include "chrome/browser/extensions/api/api_resource_manager.h" | 12 #include "chrome/browser/extensions/api/api_resource_manager.h" |
| 14 #include "chrome/browser/extensions/api/hid/hid_connection_resource.h" | 13 #include "chrome/browser/extensions/api/hid/hid_connection_resource.h" |
| 15 #include "chrome/browser/extensions/api/hid/hid_device_manager.h" | 14 #include "chrome/browser/extensions/api/hid/hid_device_manager.h" |
| 16 #include "chrome/browser/extensions/extension_function_histogram_value.h" | 15 #include "chrome/browser/extensions/extension_function_histogram_value.h" |
| 17 #include "chrome/common/extensions/api/hid.h" | 16 #include "chrome/common/extensions/api/hid.h" |
| 17 #include "extensions/browser/api/async_api_function.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 class IOBufferWithSize; | 21 class IOBufferWithSize; |
| 22 | 22 |
| 23 } // namespace net | 23 } // namespace net |
| 24 | 24 |
| 25 namespace extensions { | 25 namespace extensions { |
| 26 | 26 |
| 27 class HidAsyncApiFunction : public AsyncApiFunction { | 27 class HidAsyncApiFunction : public AsyncApiFunction { |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 scoped_ptr<base::ListValue> result_; | 187 scoped_ptr<base::ListValue> result_; |
| 188 scoped_ptr<extensions::api::hid::SendFeatureReport::Params> parameters_; | 188 scoped_ptr<extensions::api::hid::SendFeatureReport::Params> parameters_; |
| 189 | 189 |
| 190 DISALLOW_COPY_AND_ASSIGN(HidSendFeatureReportFunction); | 190 DISALLOW_COPY_AND_ASSIGN(HidSendFeatureReportFunction); |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 } // namespace extensions | 193 } // namespace extensions |
| 194 | 194 |
| 195 #endif // CHROME_BROWSER_EXTENSIONS_API_HID_HID_API_H_ | 195 #endif // CHROME_BROWSER_EXTENSIONS_API_HID_HID_API_H_ |
| OLD | NEW |