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

Unified Diff: device/usb/mojo/device_impl.h

Issue 2752523002: Handle USB device disconnection during early setup. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | device/usb/mojo/device_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/mojo/device_impl.h
diff --git a/device/usb/mojo/device_impl.h b/device/usb/mojo/device_impl.h
index 4f78ffcfd55a3a6aa987eabcc643c7d3fa64d43c..c6a8d5080c42c389d0a8fd59b649df777d250d58 100644
--- a/device/usb/mojo/device_impl.h
+++ b/device/usb/mojo/device_impl.h
@@ -46,8 +46,9 @@ class DeviceImpl : public Device, public device::UsbDevice::Observer {
uint16_t index);
// Handles completion of an open request.
- void OnOpen(const OpenCallback& callback,
- scoped_refptr<device::UsbDeviceHandle> handle);
+ static void OnOpen(base::WeakPtr<DeviceImpl> device,
+ const OpenCallback& callback,
+ scoped_refptr<device::UsbDeviceHandle> handle);
void OnPermissionGrantedForOpen(const OpenCallback& callback, bool granted);
// Device implementation:
« no previous file with comments | « no previous file | device/usb/mojo/device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698