#include "services/network/trust_tokens/trust_token_query_answerer.h"
#include "base/memory/ptr_util.h"
#include "services/network/public/cpp/is_potentially_trustworthy.h"
#include "services/network/public/mojom/trust_tokens.mojom.h"
#include "services/network/trust_tokens/pending_trust_token_store.h"
#include "services/network/trust_tokens/suitable_trust_token_origin.h"
#include "services/network/trust_tokens/trust_token_key_commitments.h"
#include "url/url_constants.h"
namespace network {
TrustTokenQueryAnswerer::TrustTokenQueryAnswerer(
SuitableTrustTokenOrigin top_frame_origin,
PendingTrustTokenStore* pending_trust_token_store,
const SynchronousTrustTokenKeyCommitmentGetter* key_commitment_getter)
: … { … }
TrustTokenQueryAnswerer::~TrustTokenQueryAnswerer() = default;
void TrustTokenQueryAnswerer::HasTrustTokens(const url::Origin& issuer,
HasTrustTokensCallback callback) { … }
void TrustTokenQueryAnswerer::HasRedemptionRecord(
const url::Origin& issuer,
HasRedemptionRecordCallback callback) { … }
void TrustTokenQueryAnswerer::AnswerTokenQueryWithStore(
const SuitableTrustTokenOrigin& issuer,
HasTrustTokensCallback callback,
TrustTokenStore* trust_token_store) const { … }
void TrustTokenQueryAnswerer::AnswerRedemptionQueryWithStore(
const SuitableTrustTokenOrigin& issuer,
HasRedemptionRecordCallback callback,
TrustTokenStore* trust_token_store) const { … }
}