[Nearby Presence] Add authentication status to ConnectionResponseInfo

Adds authentication status to `ConnectionResponseInfo`, which will pass the result of the authentication to clients when the connection is complete. See go/cros-nearby-presence-np-nc-authentication for details. This will be used in follow up CL to communicate the authentication status to clients of RequestConnectionV3().

PiperOrigin-RevId: 607457933
This commit is contained in:
Juliet Levesque
2024-02-15 14:34:37 -08:00
committed by Copybara-Service
parent d497c2e97c
commit e7a433f41e
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -77,6 +77,7 @@ cc_library(
"//sharing:__subpackages__",
],
deps = [
"//internal/interop:authentication_status",
"//internal/platform:base",
"//internal/platform:types",
"//internal/platform:util",
+5
View File
@@ -31,6 +31,7 @@
#include "connections/connection_options.h"
#include "connections/payload.h"
#include "connections/status.h"
#include "internal/interop/authentication_status.h"
#include "internal/platform/byte_array.h"
#include "internal/platform/byte_utils.h"
@@ -56,6 +57,10 @@ struct ConnectionResponseInfo {
ByteArray raw_authentication_token;
bool is_incoming_connection = false;
bool is_connection_verified = false;
// Result of authentication via the DeviceProvider, if available. Only used
// for `RequestConnectionV3()`.
AuthenticationStatus authentication_status = AuthenticationStatus::kUnknown;
};
struct PayloadProgressInfo {