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_USB_USB_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_USB_USB_API_H_ |
6 #define EXTENSIONS_BROWSER_API_USB_USB_API_H_ | 6 #define EXTENSIONS_BROWSER_API_USB_USB_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 extensions::core_api::usb::Direction* output); | 161 extensions::core_api::usb::Direction* output); |
162 bool ConvertSynchronizationTypeSafely( | 162 bool ConvertSynchronizationTypeSafely( |
163 const device::UsbSynchronizationType& input, | 163 const device::UsbSynchronizationType& input, |
164 extensions::core_api::usb::SynchronizationType* output); | 164 extensions::core_api::usb::SynchronizationType* output); |
165 bool ConvertTransferTypeSafely( | 165 bool ConvertTransferTypeSafely( |
166 const device::UsbTransferType& input, | 166 const device::UsbTransferType& input, |
167 extensions::core_api::usb::TransferType* output); | 167 extensions::core_api::usb::TransferType* output); |
168 bool ConvertUsageTypeSafely(const device::UsbUsageType& input, | 168 bool ConvertUsageTypeSafely(const device::UsbUsageType& input, |
169 extensions::core_api::usb::UsageType* output); | 169 extensions::core_api::usb::UsageType* output); |
170 | 170 |
171 scoped_ptr<base::ListValue> result_; | |
172 scoped_ptr<extensions::core_api::usb::ListInterfaces::Params> parameters_; | 171 scoped_ptr<extensions::core_api::usb::ListInterfaces::Params> parameters_; |
173 }; | 172 }; |
174 | 173 |
175 class UsbCloseDeviceFunction : public UsbAsyncApiFunction { | 174 class UsbCloseDeviceFunction : public UsbAsyncApiFunction { |
176 public: | 175 public: |
177 DECLARE_EXTENSION_FUNCTION("usb.closeDevice", USB_CLOSEDEVICE) | 176 DECLARE_EXTENSION_FUNCTION("usb.closeDevice", USB_CLOSEDEVICE) |
178 | 177 |
179 UsbCloseDeviceFunction(); | 178 UsbCloseDeviceFunction(); |
180 | 179 |
181 protected: | 180 protected: |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 312 |
314 virtual bool Prepare() OVERRIDE; | 313 virtual bool Prepare() OVERRIDE; |
315 virtual void AsyncWorkStart() OVERRIDE; | 314 virtual void AsyncWorkStart() OVERRIDE; |
316 | 315 |
317 private: | 316 private: |
318 scoped_ptr<extensions::core_api::usb::ResetDevice::Params> parameters_; | 317 scoped_ptr<extensions::core_api::usb::ResetDevice::Params> parameters_; |
319 }; | 318 }; |
320 } // namespace extensions | 319 } // namespace extensions |
321 | 320 |
322 #endif // EXTENSIONS_BROWSER_API_USB_USB_API_H_ | 321 #endif // EXTENSIONS_BROWSER_API_USB_USB_API_H_ |
OLD | NEW |