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

Unified Diff: device/usb/usb_device_impl.h

Issue 2857473002: Use the task scheduler in the USB service on macOS and Windows (Closed)
Patch Set: Add AssertIOAllowed Created 3 years, 8 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_handle_impl.cc ('k') | device/usb/usb_device_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_impl.h
diff --git a/device/usb/usb_device_impl.h b/device/usb/usb_device_impl.h
index 7457501636cbfe76a075fba71b65bf3e56194d2d..c2066bd82a0fd87e067f02c3cc8aa9f53dcaf0e6 100644
--- a/device/usb/usb_device_impl.h
+++ b/device/usb/usb_device_impl.h
@@ -70,8 +70,7 @@ class UsbDeviceImpl : public UsbDevice {
// Called by UsbServiceImpl only;
UsbDeviceImpl(scoped_refptr<UsbContext> context,
PlatformUsbDevice platform_device,
- const libusb_device_descriptor& descriptor,
- scoped_refptr<base::SequencedTaskRunner> blocking_task_runner);
+ const libusb_device_descriptor& descriptor);
~UsbDeviceImpl() override;
@@ -84,9 +83,13 @@ class UsbDeviceImpl : public UsbDevice {
private:
void GetAllConfigurations();
- void OpenOnBlockingThread(const OpenCallback& callback);
+ void OpenOnBlockingThread(
+ const OpenCallback& callback,
+ scoped_refptr<base::TaskRunner> task_runner,
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner);
void Opened(PlatformUsbDeviceHandle platform_handle,
- const OpenCallback& callback);
+ const OpenCallback& callback,
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner);
base::ThreadChecker thread_checker_;
PlatformUsbDevice platform_device_;
@@ -95,9 +98,6 @@ class UsbDeviceImpl : public UsbDevice {
// Retain the context so that it will not be released before UsbDevice.
scoped_refptr<UsbContext> context_;
- scoped_refptr<base::SequencedTaskRunner> task_runner_;
- scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
-
DISALLOW_COPY_AND_ASSIGN(UsbDeviceImpl);
};
« no previous file with comments | « device/usb/usb_device_handle_impl.cc ('k') | device/usb/usb_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698