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

Unified Diff: net/quic/core/quic_crypto_client_stream.cc

Issue 2907263002: [Not for review] Add TRACE_EVENTs and chrome://flags for preconnect
Patch Set: Created 3 years, 7 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
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_crypto_client_stream.cc
diff --git a/net/quic/core/quic_crypto_client_stream.cc b/net/quic/core/quic_crypto_client_stream.cc
index 837ebeb5da7a20324968449d237829753f61e175..5b023f76a46f6fb85f63c830228d905271a6b38c 100644
--- a/net/quic/core/quic_crypto_client_stream.cc
+++ b/net/quic/core/quic_crypto_client_stream.cc
@@ -8,6 +8,7 @@
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
+#include "base/trace_event/trace_event.h"
#include "net/quic/core/crypto/crypto_protocol.h"
#include "net/quic/core/crypto/crypto_utils.h"
#include "net/quic/core/crypto/null_encrypter.h"
@@ -117,6 +118,8 @@ QuicCryptoClientStream::~QuicCryptoClientStream() {
void QuicCryptoClientStream::OnHandshakeMessage(
const CryptoHandshakeMessage& message) {
+ TRACE_EVENT1("net", "QuicCryptoClientStream::OnHandshakeMessage", "host",
+ server_id_.host());
QuicCryptoClientStreamBase::OnHandshakeMessage(message);
if (message.tag() == kSCUP) {
@@ -192,6 +195,8 @@ void QuicCryptoClientStream::HandleServerConfigUpdateMessage(
}
void QuicCryptoClientStream::DoHandshakeLoop(const CryptoHandshakeMessage* in) {
+ TRACE_EVENT1("net", "QuicCryptoClientStream::DoHandshakeLoop", "host",
+ server_id_.host());
QuicCryptoClientConfig::CachedState* cached =
crypto_config_->LookupOrCreate(server_id_);
@@ -261,6 +266,8 @@ void QuicCryptoClientStream::DoInitialize(
void QuicCryptoClientStream::DoSendCHLO(
QuicCryptoClientConfig::CachedState* cached) {
+ TRACE_EVENT1("net", "QuicCryptoClientStream::DoSendCHLO", "host",
+ server_id_.host());
if (stateless_reject_received_) {
// If we've gotten to this point, we've sent at least one hello
// and received a stateless reject in response. We cannot
@@ -447,6 +454,8 @@ void QuicCryptoClientStream::DoReceiveREJ(
QuicAsyncStatus QuicCryptoClientStream::DoVerifyProof(
QuicCryptoClientConfig::CachedState* cached) {
+ TRACE_EVENT1("net", "QuicCryptoClientStream::DoVerifyProof", "host",
+ server_id_.host());
ProofVerifier* verifier = crypto_config_->proof_verifier();
DCHECK(verifier);
next_state_ = STATE_VERIFY_PROOF_COMPLETE;
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698