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

Unified Diff: device/hid/hid_service_win.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_mac.cc ('k') | device/hid/hid_service_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service_win.h
diff --git a/device/hid/hid_service_win.h b/device/hid/hid_service_win.h
index 4c9dec6902f285d83404082bfa6aec84a8d5214b..e9ac9e98c670c1780bbc0e6cb1ed964772c80ff8 100644
--- a/device/hid/hid_service_win.h
+++ b/device/hid/hid_service_win.h
@@ -32,8 +32,8 @@ class HidServiceWin : public HidService {
virtual void GetDevices(std::vector<HidDeviceInfo>* devices) override;
- virtual scoped_refptr<HidConnection> Connect(const HidDeviceId& device_id)
- override;
+ virtual void Connect(const HidDeviceId& device_id,
+ const ConnectCallback& callback) override;
private:
virtual ~HidServiceWin();
@@ -50,6 +50,8 @@ class HidServiceWin : public HidService {
void PlatformAddDevice(const std::string& device_path);
void PlatformRemoveDevice(const std::string& device_path);
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+
DISALLOW_COPY_AND_ASSIGN(HidServiceWin);
};
« no previous file with comments | « device/hid/hid_service_mac.cc ('k') | device/hid/hid_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698