Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: extensions/browser/api/usb/usb_api.h

Issue 826283002: Add support for sending a USB SET_CONFIGURATION request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb_device_impl.cc ('k') | extensions/browser/api/usb/usb_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/usb/usb_api.h
diff --git a/extensions/browser/api/usb/usb_api.h b/extensions/browser/api/usb/usb_api.h
index 9310f60e72453c970cba1375fb525454dd4c25bd..8903348a3ba06b38c5c608a0d20b0d9b1b70515f 100644
--- a/extensions/browser/api/usb/usb_api.h
+++ b/extensions/browser/api/usb/usb_api.h
@@ -169,6 +169,23 @@ class UsbOpenDeviceFunction : public UsbAsyncApiFunction {
scoped_ptr<extensions::core_api::usb::OpenDevice::Params> parameters_;
};
+class UsbSetConfigurationFunction : public UsbAsyncApiFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("usb.setConfiguration", USB_SETCONFIGURATION)
+
+ UsbSetConfigurationFunction();
+
+ protected:
+ ~UsbSetConfigurationFunction() override;
+
+ // AsyncApiFunction:
+ bool Prepare() override;
+ void AsyncWorkStart() override;
+
+ private:
+ scoped_ptr<extensions::core_api::usb::SetConfiguration::Params> parameters_;
+};
+
class UsbGetConfigurationFunction : public UsbAsyncApiFunction {
public:
DECLARE_EXTENSION_FUNCTION("usb.getConfiguration", USB_GETCONFIGURATION)
« no previous file with comments | « device/usb/usb_device_impl.cc ('k') | extensions/browser/api/usb/usb_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698