blob: 103a65659e07bd5f5c692cc3acb84e3baee4025a [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_BLUETOOTH_CHROME_BLUETOOTH_CHOOSER_CONTROLLER_H_
#define CHROME_BROWSER_UI_BLUETOOTH_CHROME_BLUETOOTH_CHOOSER_CONTROLLER_H_
#include "components/permissions/bluetooth_chooser_controller.h"
// The concrete version of BluetoothChooserController for Chrome.
class ChromeBluetoothChooserController
: public permissions::BluetoothChooserController {
public:
ChromeBluetoothChooserController(
content::RenderFrameHost* owner,
const content::BluetoothChooser::EventHandler& event_handler);
ChromeBluetoothChooserController(const ChromeBluetoothChooserController&) =
delete;
ChromeBluetoothChooserController& operator=(
const ChromeBluetoothChooserController&) = delete;
~ChromeBluetoothChooserController() override;
// Provides help information when the adapter is off.
void OpenAdapterOffHelpUrl() const override;
// Navigate user to preferences in order to acquire Bluetooth permission.
void OpenPermissionPreferences() const override;
// Opens the help center URL.
void OpenHelpCenterUrl() const override;
private:
int frame_tree_node_id_ = -1;
};
#endif // CHROME_BROWSER_UI_BLUETOOTH_CHROME_BLUETOOTH_CHOOSER_CONTROLLER_H_