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

Unified Diff: device/hid/hid_service_linux.h

Issue 660573007: Open HID connections asynchronously. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/hid/hid_service.h ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service_linux.h
diff --git a/device/hid/hid_service_linux.h b/device/hid/hid_service_linux.h
index 765278f0d7a8f5f26b56f03a5fa98f471423188d..bc406ad069892f45d24e79945be1d1f3cf4225fd 100644
--- a/device/hid/hid_service_linux.h
+++ b/device/hid/hid_service_linux.h
@@ -23,14 +23,8 @@ class HidServiceLinux : public HidService,
public:
HidServiceLinux(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
-#if defined(OS_CHROMEOS)
- virtual void RequestAccess(
- const HidDeviceId& device_id,
- const base::Callback<void(bool success)>& callback) override;
-#endif
-
- virtual scoped_refptr<HidConnection> Connect(const HidDeviceId& device_id)
- override;
+ virtual void Connect(const HidDeviceId& device_id,
+ const ConnectCallback& callback) override;
// Implements DeviceMonitorLinux::Observer:
virtual void OnDeviceAdded(udev_device* device) override;
@@ -39,9 +33,10 @@ class HidServiceLinux : public HidService,
private:
virtual ~HidServiceLinux();
- void OnRequestAccessComplete(
- const base::Callback<void(bool success)>& callback,
- bool success);
+ void FinishConnect(const HidDeviceId& device_id,
+ const std::string device_node,
+ const ConnectCallback& callback,
+ bool success);
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
« no previous file with comments | « device/hid/hid_service.h ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698