| OLD | NEW |
| 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_USB_USB_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_USB_USB_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_USB_USB_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_USB_USB_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 base::WeakPtr<device::usb::PermissionProvider> GetPermissionProvider( | 62 base::WeakPtr<device::usb::PermissionProvider> GetPermissionProvider( |
| 63 content::RenderFrameHost* render_frame_host); | 63 content::RenderFrameHost* render_frame_host); |
| 64 | 64 |
| 65 void GetChooserService( | 65 void GetChooserService( |
| 66 content::RenderFrameHost* render_frame_host, | 66 content::RenderFrameHost* render_frame_host, |
| 67 mojo::InterfaceRequest<device::mojom::UsbChooserService> request); | 67 mojo::InterfaceRequest<device::mojom::UsbChooserService> request); |
| 68 | 68 |
| 69 void NotifyTabStateChanged() const; | 69 void NotifyTabStateChanged() const; |
| 70 | 70 |
| 71 bool AllowedByFeaturePolicy( |
| 72 content::RenderFrameHost* render_frame_host) const; |
| 73 |
| 71 FrameUsbServicesMap frame_usb_services_; | 74 FrameUsbServicesMap frame_usb_services_; |
| 72 | 75 |
| 73 DISALLOW_COPY_AND_ASSIGN(UsbTabHelper); | 76 DISALLOW_COPY_AND_ASSIGN(UsbTabHelper); |
| 74 }; | 77 }; |
| 75 | 78 |
| 76 #endif // CHROME_BROWSER_USB_USB_TAB_HELPER_H_ | 79 #endif // CHROME_BROWSER_USB_USB_TAB_HELPER_H_ |
| OLD | NEW |