| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_USB_USB_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/extensions/api/api_function.h" | |
| 14 #include "chrome/browser/extensions/api/api_resource_manager.h" | 13 #include "chrome/browser/extensions/api/api_resource_manager.h" |
| 15 #include "chrome/browser/usb/usb_device.h" | 14 #include "chrome/browser/usb/usb_device.h" |
| 16 #include "chrome/browser/usb/usb_device_handle.h" | 15 #include "chrome/browser/usb/usb_device_handle.h" |
| 17 #include "chrome/common/extensions/api/usb.h" | 16 #include "chrome/common/extensions/api/usb.h" |
| 17 #include "extensions/browser/api/async_api_function.h" |
| 18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 19 | 19 |
| 20 class UsbDevice; | 20 class UsbDevice; |
| 21 class UsbDeviceHandle; | 21 class UsbDeviceHandle; |
| 22 class UsbService; | 22 class UsbService; |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 class UsbDeviceResource; | 26 class UsbDeviceResource; |
| 27 | 27 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 virtual bool Prepare() OVERRIDE; | 309 virtual bool Prepare() OVERRIDE; |
| 310 virtual void AsyncWorkStart() OVERRIDE; | 310 virtual void AsyncWorkStart() OVERRIDE; |
| 311 | 311 |
| 312 private: | 312 private: |
| 313 scoped_ptr<extensions::api::usb::ResetDevice::Params> parameters_; | 313 scoped_ptr<extensions::api::usb::ResetDevice::Params> parameters_; |
| 314 }; | 314 }; |
| 315 } // namespace extensions | 315 } // namespace extensions |
| 316 | 316 |
| 317 #endif // CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_ | 317 #endif // CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_ |
| OLD | NEW |