mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
[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:
committed by
Copybara-Service
parent
d497c2e97c
commit
e7a433f41e
@@ -77,6 +77,7 @@ cc_library(
|
||||
"//sharing:__subpackages__",
|
||||
],
|
||||
deps = [
|
||||
"//internal/interop:authentication_status",
|
||||
"//internal/platform:base",
|
||||
"//internal/platform:types",
|
||||
"//internal/platform:util",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user