// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_HID_WEB_VIEW_CHOOSER_CONTEXT_H_ #define CHROME_BROWSER_HID_WEB_VIEW_CHOOSER_CONTEXT_H_ #include <map> #include <string> #include "base/scoped_observation.h" #include "components/permissions/object_permission_context_base.h" #include "services/device/public/mojom/hid.mojom.h" class HidChooserContext; // WebViewChooserContext stores the HID permissions for embedded WebViews. // Permissions stored by WebViewChooserContext are ephemeral and not stored on // disk. // // WebView permissions should be stored separately from other permissions for // security reasons, e.g., crbug/1462709. class WebViewChooserContext : public permissions::ObjectPermissionContextBase::PermissionObserver { … }; #endif // CHROME_BROWSER_HID_WEB_VIEW_CHOOSER_CONTEXT_H_