chromium/chrome/browser/hid/web_view_chooser_context.cc

// 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.

#include "chrome/browser/hid/web_view_chooser_context.h"

#include "base/containers/map_util.h"
#include "base/feature_list.h"
#include "chrome/browser/hid/hid_chooser_context.h"
#include "extensions/common/extension_features.h"

WebViewChooserContext::WebViewChooserContext(HidChooserContext* chooser_context)
    :{}

WebViewChooserContext::~WebViewChooserContext() = default;

void WebViewChooserContext::GrantDevicePermission(
    const url::Origin& origin,
    const url::Origin& embedding_origin,
    const device::mojom::HidDeviceInfo& device) {}

bool WebViewChooserContext::HasDevicePermission(
    const url::Origin& origin,
    const url::Origin& embedding_origin,
    const device::mojom::HidDeviceInfo& device) const {}

void WebViewChooserContext::RevokeDevicePermission(
    const url::Origin& origin,
    const url::Origin& embedding_origin,
    const device::mojom::HidDeviceInfo& device) {}

void WebViewChooserContext::OnPermissionRevoked(const url::Origin& origin) {}

void WebViewChooserContext::OnHidChooserContextShutdown() {}