#include "quiche/quic/core/crypto/quic_compressed_certs_cache.h"
#include <memory>
#include <string>
#include <utility>
namespace quic {
namespace {
inline void hash_combine(uint64_t* seed, const uint64_t& val) { … }
}
const size_t QuicCompressedCertsCache::kQuicCompressedCertsCacheSize = …;
QuicCompressedCertsCache::UncompressedCerts::UncompressedCerts()
: … { … }
QuicCompressedCertsCache::UncompressedCerts::UncompressedCerts(
const quiche::QuicheReferenceCountedPointer<ProofSource::Chain>& chain,
const std::string* client_cached_cert_hashes)
: … { … }
QuicCompressedCertsCache::UncompressedCerts::~UncompressedCerts() { … }
QuicCompressedCertsCache::CachedCerts::CachedCerts() { … }
QuicCompressedCertsCache::CachedCerts::CachedCerts(
const UncompressedCerts& uncompressed_certs,
const std::string& compressed_cert)
: … { … }
QuicCompressedCertsCache::CachedCerts::CachedCerts(const CachedCerts& other) =
default;
QuicCompressedCertsCache::CachedCerts::~CachedCerts() { … }
bool QuicCompressedCertsCache::CachedCerts::MatchesUncompressedCerts(
const UncompressedCerts& uncompressed_certs) const { … }
const std::string* QuicCompressedCertsCache::CachedCerts::compressed_cert()
const { … }
QuicCompressedCertsCache::QuicCompressedCertsCache(int64_t max_num_certs)
: … { … }
QuicCompressedCertsCache::~QuicCompressedCertsCache() { … }
const std::string* QuicCompressedCertsCache::GetCompressedCert(
const quiche::QuicheReferenceCountedPointer<ProofSource::Chain>& chain,
const std::string& client_cached_cert_hashes) { … }
void QuicCompressedCertsCache::Insert(
const quiche::QuicheReferenceCountedPointer<ProofSource::Chain>& chain,
const std::string& client_cached_cert_hashes,
const std::string& compressed_cert) { … }
size_t QuicCompressedCertsCache::MaxSize() { … }
size_t QuicCompressedCertsCache::Size() { … }
uint64_t QuicCompressedCertsCache::ComputeUncompressedCertsHash(
const UncompressedCerts& uncompressed_certs) { … }
}