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

Unified Diff: device/usb/usb_context.h

Issue 2557073004: Call libusb_init on the FILE thread. (Closed)
Patch Set: Created 4 years 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 | « no previous file | device/usb/usb_service_impl.h » ('j') | device/usb/usb_service_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_context.h
diff --git a/device/usb/usb_context.h b/device/usb/usb_context.h
index ee3abfcabfe2def644ad17e0f6f18f1b4c9d4bea..379eee546e94dfeb5c88af23a3621bf7d597c6c2 100644
--- a/device/usb/usb_context.h
+++ b/device/usb/usb_context.h
@@ -23,13 +23,13 @@ typedef libusb_context* PlatformUsbContext;
// Destructor must be called on FILE thread.
class UsbContext : public base::RefCountedThreadSafe<UsbContext> {
public:
+ explicit UsbContext(PlatformUsbContext context);
+
PlatformUsbContext context() const { return context_; }
protected:
- friend class UsbServiceImpl;
friend class base::RefCountedThreadSafe<UsbContext>;
- explicit UsbContext(PlatformUsbContext context);
virtual ~UsbContext();
private:
« no previous file with comments | « no previous file | device/usb/usb_service_impl.h » ('j') | device/usb/usb_service_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698