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

Side by Side Diff: chrome/browser/android/usb/web_usb_chooser_service_android.h

Issue 2615353002: Typemap device.usb.DeviceFilter to device::UsbDeviceFilter. (Closed)
Patch Set: Addressed juncai@'s feedback. Created 3 years, 11 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 | « no previous file | chrome/browser/android/usb/web_usb_chooser_service_android.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 CHROME_BROWSER_ANDROID_USB_WEB_USB_CHOOSER_SERVICE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_USB_WEB_USB_CHOOSER_SERVICE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_USB_WEB_USB_CHOOSER_SERVICE_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_USB_WEB_USB_CHOOSER_SERVICE_ANDROID_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 // This interface can be used by a webpage to request permission from user 23 // This interface can be used by a webpage to request permission from user
24 // to access a certain device. 24 // to access a certain device.
25 class WebUsbChooserServiceAndroid : public device::usb::ChooserService { 25 class WebUsbChooserServiceAndroid : public device::usb::ChooserService {
26 public: 26 public:
27 explicit WebUsbChooserServiceAndroid( 27 explicit WebUsbChooserServiceAndroid(
28 content::RenderFrameHost* render_frame_host); 28 content::RenderFrameHost* render_frame_host);
29 29
30 ~WebUsbChooserServiceAndroid() override; 30 ~WebUsbChooserServiceAndroid() override;
31 31
32 // device::usb::ChooserService: 32 // device::usb::ChooserService:
33 void GetPermission(std::vector<device::usb::DeviceFilterPtr> device_filters, 33 void GetPermission(const std::vector<device::UsbDeviceFilter>& device_filters,
34 const GetPermissionCallback& callback) override; 34 const GetPermissionCallback& callback) override;
35 35
36 void Bind(mojo::InterfaceRequest<device::usb::ChooserService> request); 36 void Bind(mojo::InterfaceRequest<device::usb::ChooserService> request);
37 37
38 private: 38 private:
39 content::RenderFrameHost* const render_frame_host_; 39 content::RenderFrameHost* const render_frame_host_;
40 mojo::BindingSet<device::usb::ChooserService> bindings_; 40 mojo::BindingSet<device::usb::ChooserService> bindings_;
41 std::vector<std::unique_ptr<UsbChooserDialogAndroid>> 41 std::vector<std::unique_ptr<UsbChooserDialogAndroid>>
42 usb_chooser_dialog_android_; 42 usb_chooser_dialog_android_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(WebUsbChooserServiceAndroid); 44 DISALLOW_COPY_AND_ASSIGN(WebUsbChooserServiceAndroid);
45 }; 45 };
46 46
47 #endif // CHROME_BROWSER_ANDROID_USB_WEB_USB_CHOOSER_SERVICE_ANDROID_H_ 47 #endif // CHROME_BROWSER_ANDROID_USB_WEB_USB_CHOOSER_SERVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/usb/web_usb_chooser_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698