#include "device/bluetooth/bluetooth_discovery_session.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_discovery_filter.h"
namespace device {
BluetoothDiscoverySession::BluetoothDiscoverySession(
scoped_refptr<BluetoothAdapter> adapter,
std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter)
: … { … }
BluetoothDiscoverySession::~BluetoothDiscoverySession() { … }
bool BluetoothDiscoverySession::IsActive() const { … }
void BluetoothDiscoverySession::PendingSessionsStarting() { … }
void BluetoothDiscoverySession::StartingSessionsScanning() { … }
void BluetoothDiscoverySession::Stop(base::OnceClosure success_callback,
ErrorCallback error_callback) { … }
void BluetoothDiscoverySession::OnDiscoverySessionRemoved(
base::WeakPtr<BluetoothDiscoverySession> session,
base::OnceClosure deactivate_discovery_session,
base::OnceClosure success_callback) { … }
void BluetoothDiscoverySession::OnDiscoverySessionRemovalFailed(
base::WeakPtr<BluetoothDiscoverySession> session,
base::OnceClosure error_callback,
UMABluetoothDiscoverySessionOutcome outcome) { … }
void BluetoothDiscoverySession::DeactivateDiscoverySession() { … }
void BluetoothDiscoverySession::MarkAsInactive() { … }
const BluetoothDiscoveryFilter* BluetoothDiscoverySession::GetDiscoveryFilter()
const { … }
base::WeakPtr<BluetoothDiscoverySession>
BluetoothDiscoverySession::GetWeakPtr() { … }
}