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

Side by Side Diff: chrome/browser/usb/usb_chooser_bubble_delegate.h

Issue 1408193003: Add chrome side webusb permission UI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed some redundant code Created 5 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_USB_USB_CHOOSER_BUBBLE_DELEGATE_H_
6 #define CHROME_BROWSER_USB_USB_CHOOSER_BUBBLE_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/website_settings/chooser_bubble_delegate.h"
10 #include "components/webusb/public/interfaces/webusb_permission_bubble.mojom.h"
11
12 namespace content {
13 class RenderFrameHost;
14 }
15
16 class Browser;
17
18 // WebUsbChooserBubbleDelegate creates a chooser bubble for webusb
19 class UsbChooserBubbleDelegate : public ChooserBubbleDelegate {
20 public:
21 UsbChooserBubbleDelegate(
22 Browser* browser,
23 mojo::Array<device::usb::DeviceFilterPtr> device_filters,
24 content::RenderFrameHost* render_frame_host,
25 const webusb::WebUsbPermissionBubble::GetPermissionCallback& callback);
26 ~UsbChooserBubbleDelegate() override;
27
28 // BubbleDelegate:
29 scoped_ptr<BubbleUi> BuildBubbleUi() override;
30
31 // ChooserBubbleDelegate:
32 void Select(int index) override;
33 void Cancel() override;
34
35 private:
36 Browser* browser_;
37
38 DISALLOW_COPY_AND_ASSIGN(UsbChooserBubbleDelegate);
39 };
40
41 #endif // CHROME_BROWSER_USB_USB_CHOOSER_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698