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

Unified Diff: device/usb/usb_service.h

Issue 2849953003: Use the task scheduler for blocking tasks in the USB service on Linux (Closed)
Patch Set: Remove more passing of the SequencedTaskRunner 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_linux.cc ('k') | device/usb/usb_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_service.h
diff --git a/device/usb/usb_service.h b/device/usb/usb_service.h
index 15977dd1c544a5270084dc9a0a3eb57609b70c11..6865ca4ebbc5f8e955464ee205c9f378f3549da8 100644
--- a/device/usb/usb_service.h
+++ b/device/usb/usb_service.h
@@ -54,6 +54,9 @@ class UsbService : public base::NonThreadSafe {
static std::unique_ptr<UsbService> Create(
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner);
+ // Creates a SequencedTaskRunner appropriate for blocking I/O operations.
+ static scoped_refptr<base::SequencedTaskRunner> CreateBlockingTaskRunner();
+
virtual ~UsbService();
scoped_refptr<UsbDevice> GetDevice(const std::string& guid);
« no previous file with comments | « device/usb/usb_device_linux.cc ('k') | device/usb/usb_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698