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

Side by Side Diff: extensions/browser/api/usb/usb_api.h

Issue 567003002: Revert of Convert device::UsbConfigDescriptor and friends to structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « device/usb/usb_interface_impl.cc ('k') | extensions/browser/api/usb/usb_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_;
171 scoped_ptr<extensions::core_api::usb::ListInterfaces::Params> parameters_; 172 scoped_ptr<extensions::core_api::usb::ListInterfaces::Params> parameters_;
172 }; 173 };
173 174
174 class UsbCloseDeviceFunction : public UsbAsyncApiFunction { 175 class UsbCloseDeviceFunction : public UsbAsyncApiFunction {
175 public: 176 public:
176 DECLARE_EXTENSION_FUNCTION("usb.closeDevice", USB_CLOSEDEVICE) 177 DECLARE_EXTENSION_FUNCTION("usb.closeDevice", USB_CLOSEDEVICE)
177 178
178 UsbCloseDeviceFunction(); 179 UsbCloseDeviceFunction();
179 180
180 protected: 181 protected:
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 313
313 virtual bool Prepare() OVERRIDE; 314 virtual bool Prepare() OVERRIDE;
314 virtual void AsyncWorkStart() OVERRIDE; 315 virtual void AsyncWorkStart() OVERRIDE;
315 316
316 private: 317 private:
317 scoped_ptr<extensions::core_api::usb::ResetDevice::Params> parameters_; 318 scoped_ptr<extensions::core_api::usb::ResetDevice::Params> parameters_;
318 }; 319 };
319 } // namespace extensions 320 } // namespace extensions
320 321
321 #endif // EXTENSIONS_BROWSER_API_USB_USB_API_H_ 322 #endif // EXTENSIONS_BROWSER_API_USB_USB_API_H_
OLDNEW
« no previous file with comments | « device/usb/usb_interface_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