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

Side by Side Diff: content/renderer/usb/web_usb_client_impl.h

Issue 1409023002: Revert of Add webusb permission bubble mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webusb_permission_ui_1_refactor_permission_bubble_manager
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 unified diff | Download patch
« no previous file with comments | « content/renderer/usb/DEPS ('k') | content/renderer/usb/web_usb_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_USB_WEB_USB_CLIENT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_USB_WEB_USB_CLIENT_IMPL_H_
6 #define CONTENT_RENDERER_USB_WEB_USB_CLIENT_IMPL_H_ 6 #define CONTENT_RENDERER_USB_WEB_USB_CLIENT_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/webusb/public/interfaces/webusb_permission_bubble.mojom.h"
10 #include "device/devices_app/usb/public/interfaces/device_manager.mojom.h" 9 #include "device/devices_app/usb/public/interfaces/device_manager.mojom.h"
11 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h" 10 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h"
12 11
13 namespace content { 12 namespace content {
14 13
15 class ServiceRegistry; 14 class ServiceRegistry;
16 15
17 class WebUSBClientImpl : public blink::WebUSBClient { 16 class WebUSBClientImpl : public blink::WebUSBClient {
18 public: 17 public:
19 explicit WebUSBClientImpl(ServiceRegistry* service_registry); 18 explicit WebUSBClientImpl(ServiceRegistry* service_registry);
20 ~WebUSBClientImpl() override; 19 ~WebUSBClientImpl() override;
21 20
22 private: 21 private:
23 // blink::WebUSBClient implementation: 22 // blink::WebUSBClient implementation:
24 void getDevices(blink::WebUSBClientGetDevicesCallbacks* callbacks) override; 23 void getDevices(blink::WebUSBClientGetDevicesCallbacks* callbacks) override;
25 void requestDevice( 24 void requestDevice(
26 const blink::WebUSBDeviceRequestOptions& options, 25 const blink::WebUSBDeviceRequestOptions& options,
27 blink::WebUSBClientRequestDeviceCallbacks* callbacks) override; 26 blink::WebUSBClientRequestDeviceCallbacks* callbacks) override;
28 void setObserver(Observer* observer) override; 27 void setObserver(Observer* observer) override;
29 28
30 device::usb::DeviceManager* GetDeviceManager(); 29 device::usb::DeviceManager* GetDeviceManager();
31 void OnDeviceChangeNotification( 30 void OnDeviceChangeNotification(
32 device::usb::DeviceChangeNotificationPtr notification); 31 device::usb::DeviceChangeNotificationPtr notification);
33 32
34 ServiceRegistry* const service_registry_; 33 ServiceRegistry* const service_registry_;
35 device::usb::DeviceManagerPtr device_manager_; 34 device::usb::DeviceManagerPtr device_manager_;
36 webusb::WebUsbPermissionBubblePtr webusb_permission_bubble_;
37 Observer* observer_ = nullptr; 35 Observer* observer_ = nullptr;
38 36
39 DISALLOW_COPY_AND_ASSIGN(WebUSBClientImpl); 37 DISALLOW_COPY_AND_ASSIGN(WebUSBClientImpl);
40 }; 38 };
41 39
42 } // namespace content 40 } // namespace content
43 41
44 #endif // CONTENT_RENDERER_USB_WEB_USB_CLIENT_IMPL_H_ 42 #endif // CONTENT_RENDERER_USB_WEB_USB_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/usb/DEPS ('k') | content/renderer/usb/web_usb_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698