Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Unified Diff: net/quic/core/crypto/quic_compressed_certs_cache.cc

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/core/crypto/quic_compressed_certs_cache.cc
diff --git a/net/quic/core/crypto/quic_compressed_certs_cache.cc b/net/quic/core/crypto/quic_compressed_certs_cache.cc
index a18f021fa8f7bedfbdd8ce19af12fadee2fd7c64..7bcddc4c53ae2b717b683f3121eb45e84a6a9122 100644
--- a/net/quic/core/crypto/quic_compressed_certs_cache.cc
+++ b/net/quic/core/crypto/quic_compressed_certs_cache.cc
@@ -18,10 +18,11 @@ inline void hash_combine(uint64_t* seed, const uint64_t& val) {
} // namespace
-QuicCompressedCertsCache::UncompressedCerts::UncompressedCerts() {}
+QuicCompressedCertsCache::UncompressedCerts::UncompressedCerts()
+ : chain(nullptr) {}
QuicCompressedCertsCache::UncompressedCerts::UncompressedCerts(
- const scoped_refptr<ProofSource::Chain>& chain,
+ const QuicReferenceCountedPointer<ProofSource::Chain>& chain,
const string* client_common_set_hashes,
const string* client_cached_cert_hashes)
: chain(chain),
@@ -67,7 +68,7 @@ QuicCompressedCertsCache::~QuicCompressedCertsCache() {
}
const string* QuicCompressedCertsCache::GetCompressedCert(
- const scoped_refptr<ProofSource::Chain>& chain,
+ const QuicReferenceCountedPointer<ProofSource::Chain>& chain,
const string& client_common_set_hashes,
const string& client_cached_cert_hashes) {
UncompressedCerts uncompressed_certs(chain, &client_common_set_hashes,
@@ -87,7 +88,7 @@ const string* QuicCompressedCertsCache::GetCompressedCert(
}
void QuicCompressedCertsCache::Insert(
- const scoped_refptr<ProofSource::Chain>& chain,
+ const QuicReferenceCountedPointer<ProofSource::Chain>& chain,
const string& client_common_set_hashes,
const string& client_cached_cert_hashes,
const string& compressed_cert) {
« no previous file with comments | « net/quic/core/crypto/quic_compressed_certs_cache.h ('k') | net/quic/core/crypto/quic_compressed_certs_cache_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698