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

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

Issue 18593002: Usb backend refactor step 2: Separate Usb Device Handle and Usb Device (deprecate) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
Index: chrome/browser/extensions/api/usb/usb_api.h
diff --git a/chrome/browser/extensions/api/usb/usb_api.h b/chrome/browser/extensions/api/usb/usb_api.h
index f2230168bab27d3d71f3bacab42d8ea78c34cc19..69a286dba7ef69a6d69696650832adc1f40b9df5 100644
--- a/chrome/browser/extensions/api/usb/usb_api.h
+++ b/chrome/browser/extensions/api/usb/usb_api.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_
#include <string>
+#include <vector>
#include "base/memory/ref_counted.h"
#include "chrome/browser/extensions/api/api_function.h"
@@ -70,10 +71,13 @@ class UsbFindDevicesFunction : public UsbAsyncApiFunction {
virtual void AsyncWorkStart() OVERRIDE;
private:
+ void OpenDevices();
void OnCompleted();
scoped_ptr<base::ListValue> result_;
+ std::vector<int> device_ids_;
std::vector<scoped_refptr<UsbDevice> > devices_;
+ UsbService* service_;
scoped_ptr<extensions::api::usb::FindDevices::Params> parameters_;
};
@@ -261,6 +265,7 @@ class UsbResetDeviceFunction : public UsbAsyncApiFunction {
// FILE thread.
void OnStartResest(UsbDeviceResource* resource);
void OnCompletedFileThread(bool success);
+ void OnClosed();
// IO thread.
void OnCompleted(bool success);

Powered by Google App Engine
This is Rietveld 408576698