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

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

Issue 1404043002: Connect to DeviceManager lazily in WebUSBClientImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « 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 612f842e35cecd1fee096c6adce8a48ad4fe9b61..b7bc2b74bfb64a980a0c687e2719907c73ee9498 100644
--- a/content/renderer/usb/web_usb_client_impl.h
+++ b/content/renderer/usb/web_usb_client_impl.h
@@ -15,7 +15,7 @@ class ServiceRegistry;
class WebUSBClientImpl : public blink::WebUSBClient {
public:
- explicit WebUSBClientImpl(content::ServiceRegistry* service_registry);
+ explicit WebUSBClientImpl(ServiceRegistry* service_registry);
~WebUSBClientImpl() override;
private:
@@ -26,9 +26,11 @@ class WebUSBClientImpl : public blink::WebUSBClient {
blink::WebUSBClientRequestDeviceCallbacks* callbacks) override;
void setObserver(Observer* observer) override;
+ device::usb::DeviceManager* GetDeviceManager();
void OnDeviceChangeNotification(
device::usb::DeviceChangeNotificationPtr notification);
+ ServiceRegistry* const service_registry_;
device::usb::DeviceManagerPtr device_manager_;
Observer* observer_ = nullptr;
« 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