Replace to use IdentityType where TrustType were used.

PiperOrigin-RevId: 463713311
This commit is contained in:
hais
2022-07-27 17:07:19 -07:00
committed by Copybara-Service
parent c7c698412c
commit d5f86a04d6
5 changed files with 37 additions and 25 deletions
+4 -1
View File
@@ -23,9 +23,11 @@
#include "absl/strings/string_view.h"
#include "internal/platform/implementation/credential_storage.h"
#include "third_party/nearby/presence/credential.h"
#include "third_party/nearby/presence/presence_identity.h"
namespace nearby {
namespace presence {
using ::nearby::presence::PresenceIdentity;
struct GenerateCredentialsCallback {
std::function<void(std::vector<PublicCredential>)> credentials_generated_cb;
@@ -53,7 +55,8 @@ class CredentialManager {
// The users own public credentials wont be saved on local credential
// storage.
virtual void GenerateCredentials(
proto::DeviceMetadata device_metadata, std::vector<TrustType> trust_types,
proto::DeviceMetadata device_metadata,
std::vector<PresenceIdentity::IdentityType> identity_types,
GenerateCredentialsCallback credentials_generated_cb) = 0;
// Update remote public credentials.
@@ -24,6 +24,7 @@
#include "internal/platform/credential_storage.h"
#include "third_party/nearby/presence/credential.h"
#include "third_party/nearby/presence/implementation/credential_manager.h"
#include "third_party/nearby/presence/presence_identity.h"
namespace nearby {
namespace presence {
@@ -33,7 +34,8 @@ class CredentialManagerImpl : public CredentialManager {
CredentialManagerImpl() = default;
void GenerateCredentials(
proto::DeviceMetadata device_metadata, std::vector<TrustType> trust_types,
proto::DeviceMetadata device_metadata,
std::vector<PresenceIdentity::IdentityType> identity_types,
GenerateCredentialsCallback credentials_generated_cb) override {}
void UpdateRemotePublicCredentials(