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

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

Issue 2815003005: Integrate WebUSB with Feature Policy (Closed)
Patch Set: Add Feature Policy tests that set headers Created 3 years, 7 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
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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698