1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
content / shell / browser / bluetooth / shell_bluetooth_delegate_impl_client.h [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_SHELL_BROWSER_BLUETOOTH_SHELL_BLUETOOTH_DELEGATE_IMPL_CLIENT_H_
#define CONTENT_SHELL_BROWSER_BLUETOOTH_SHELL_BLUETOOTH_DELEGATE_IMPL_CLIENT_H_
#include <memory>
#include "components/permissions/bluetooth_delegate_impl.h"
namespace permissions {
class BluetoothChooserContext;
class BluetoothChooser;
} // namespace permissions
namespace content {
class RenderFrameHost;
class ShellBluetoothDelegateImplClient
: public permissions::BluetoothDelegateImpl::Client {
public:
ShellBluetoothDelegateImplClient();
~ShellBluetoothDelegateImplClient() override;
ShellBluetoothDelegateImplClient(const ShellBluetoothDelegateImplClient&) =
delete;
ShellBluetoothDelegateImplClient& operator=(
const ShellBluetoothDelegateImplClient&) = delete;
// BluetoothDelegateImpl::Client:
permissions::BluetoothChooserContext* GetBluetoothChooserContext(
RenderFrameHost* frame) override;
std::unique_ptr<BluetoothChooser> RunBluetoothChooser(
RenderFrameHost* frame,
const BluetoothChooser::EventHandler& event_handler) override;
std::unique_ptr<BluetoothScanningPrompt> ShowBluetoothScanningPrompt(
RenderFrameHost* frame,
const BluetoothScanningPrompt::EventHandler& event_handler) override;
void ShowBluetoothDevicePairDialog(
RenderFrameHost* frame,
const std::u16string& device_identifier,
BluetoothDelegate::PairPromptCallback callback,
BluetoothDelegate::PairingKind pairing_kind,
const std::optional<std::u16string>& pin) override;
};
} // namespace content
#endif // CONTENT_SHELL_BROWSER_BLUETOOTH_SHELL_BLUETOOTH_DELEGATE_IMPL_CLIENT_H_