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

Unified Diff: content/renderer/usb/web_usb_client_impl.h

Issue 1331383005: Implement WebUSBClient::setObserver in WebUSBClientImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manager_full_remove
Patch Set: Less whitespace. Created 5 years, 3 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 | content/renderer/usb/web_usb_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/usb/web_usb_client_impl.h
diff --git a/content/renderer/usb/web_usb_client_impl.h b/content/renderer/usb/web_usb_client_impl.h
index 8aca79493a4a213c4882f9dd0870d76243134eae..dc2d1069c7b37c865b5569c0818b1b6817d37754 100644
--- a/content/renderer/usb/web_usb_client_impl.h
+++ b/content/renderer/usb/web_usb_client_impl.h
@@ -24,9 +24,14 @@ class WebUSBClientImpl : public blink::WebUSBClient {
void requestDevice(
const blink::WebUSBDeviceRequestOptions& options,
blink::WebUSBClientRequestDeviceCallbacks* callbacks) override;
+ void setObserver(Observer* observer) override;
+
+ void OnDeviceChangeNotification(
+ device::usb::DeviceChangeNotificationPtr notification);
mojo::ServiceProviderPtr device_services_;
device::usb::DeviceManagerPtr device_manager_;
+ Observer* observer_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(WebUSBClientImpl);
};
« no previous file with comments | « no previous file | content/renderer/usb/web_usb_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698