#include "device/fido/enclave/transact.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_refptr.h"
#include "base/timer/timer.h"
#include "components/cbor/diagnostic_writer.h"
#include "components/cbor/reader.h"
#include "components/cbor/values.h"
#include "components/cbor/writer.h"
#include "components/device_event_log/device_event_log.h"
#include "device/fido/cable/v2_handshake.h"
#include "device/fido/enclave/enclave_protocol_utils.h"
#include "device/fido/enclave/enclave_websocket_client.h"
#include "device/fido/features.h"
#include "device/fido/network_context_factory.h"
namespace device::enclave {
namespace {
struct Transaction : base::RefCounted<Transaction> { … };
}
void Transact(NetworkContextFactory network_context_factory,
const EnclaveIdentity& enclave,
std::string access_token,
std::optional<std::string> reauthentication_token,
cbor::Value request,
SigningCallback signing_callback,
base::OnceCallback<void(std::optional<cbor::Value>)> callback) { … }
}