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

Unified Diff: webrtc/p2p/quic/quictransportchannel.cc

Issue 1886623002: Add QuicDataChannel and QuicDataTransport classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Make QuicDataChannel::Message public so QuicDataTransport can use it for handling messages Created 4 years, 8 months 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: webrtc/p2p/quic/quictransportchannel.cc
diff --git a/webrtc/p2p/quic/quictransportchannel.cc b/webrtc/p2p/quic/quictransportchannel.cc
index 446fd4201cc8de964513b4435d7b0b4605c46f7a..a2d08fcb361bcbe5b58a39e6c92d146e0684a234 100644
--- a/webrtc/p2p/quic/quictransportchannel.cc
+++ b/webrtc/p2p/quic/quictransportchannel.cc
@@ -104,13 +104,16 @@ class InsecureProofVerifier : public net::ProofVerifier {
// ProofVerifier override.
net::QuicAsyncStatus VerifyProof(
const std::string& hostname,
+ const uint16_t port,
const std::string& server_config,
+ net::QuicVersion quic_version,
+ base::StringPiece chlo_hash,
const std::vector<std::string>& certs,
const std::string& cert_sct,
const std::string& signature,
- const net::ProofVerifyContext* verify_context,
+ const net::ProofVerifyContext* context,
std::string* error_details,
- scoped_ptr<net::ProofVerifyDetails>* verify_details,
+ std::unique_ptr<net::ProofVerifyDetails>* details,
net::ProofVerifierCallback* callback) override {
LOG(LS_INFO) << "VerifyProof() ignoring credentials and returning success";
return net::QUIC_SUCCESS;
@@ -485,8 +488,14 @@ bool QuicTransportChannel::StartQuicHandshake() {
net::QuicCryptoServerConfig::ConfigOptions options;
quic_crypto_server_config_->AddDefaultConfig(helper_.GetRandomGenerator(),
helper_.GetClock(), options);
+ quic_compressed_certs_cache_.reset(new net::QuicCompressedCertsCache(
+ net::QuicCompressedCertsCache::kQuicCompressedCertsCacheSize));
+ // TODO(mikescarlett): Add support for stateless rejects.
+ bool use_stateless_rejects_if_peer_supported = false;
net::QuicCryptoServerStream* crypto_stream =
new net::QuicCryptoServerStream(quic_crypto_server_config_.get(),
+ quic_compressed_certs_cache_.get(),
+ use_stateless_rejects_if_peer_supported,
quic_.get());
quic_->StartServerHandshake(crypto_stream);
LOG_J(LS_INFO, this) << "QuicTransportChannel: Started server handshake.";

Powered by Google App Engine
This is Rietveld 408576698