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

Unified Diff: net/quic/chromium/quic_stream_factory.cc

Issue 2806883002: Add QUIC_STREAM_FACTORY_JOB specific logs to track the Job's state machine. (Closed)
Patch Set: addess #3 Created 3 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
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_stream_factory.cc
diff --git a/net/quic/chromium/quic_stream_factory.cc b/net/quic/chromium/quic_stream_factory.cc
index 2b1915f591377f4d5587b9761e98063a89bf2b27..dace59217081c0265c83ee8e5230385a716fa139 100644
--- a/net/quic/chromium/quic_stream_factory.cc
+++ b/net/quic/chromium/quic_stream_factory.cc
@@ -527,6 +527,9 @@ int QuicStreamFactory::Job::DoResolveHostComplete(int rv) {
}
int QuicStreamFactory::Job::DoLoadServerInfo() {
+ net_log_.BeginEvent(
+ NetLogEventType::QUIC_STREAM_FACTORY_JOB_LOAD_SERVER_INFO);
+
io_state_ = STATE_LOAD_SERVER_INFO_COMPLETE;
DCHECK(server_info_);
@@ -564,6 +567,7 @@ int QuicStreamFactory::Job::DoLoadServerInfo() {
}
int QuicStreamFactory::Job::DoLoadServerInfoComplete(int rv) {
+ net_log_.EndEvent(NetLogEventType::QUIC_STREAM_FACTORY_JOB_LOAD_SERVER_INFO);
UMA_HISTOGRAM_TIMES("Net.QuicServerInfo.DiskCacheWaitForDataReadyTime",
base::TimeTicks::Now() - dns_resolution_end_time_);
@@ -589,6 +593,9 @@ int QuicStreamFactory::Job::DoConnect() {
bool require_confirmation = factory_->require_confirmation() ||
was_alternative_service_recently_broken_;
+ net_log_.BeginEvent(
+ NetLogEventType::QUIC_STREAM_FACTORY_JOB_CONNECT,
+ NetLog::BoolCallback("require_confirmation", require_confirmation));
int rv = factory_->CreateSession(
key_, cert_verify_flags_, std::move(server_info_), require_confirmation,
@@ -619,6 +626,7 @@ int QuicStreamFactory::Job::DoConnect() {
}
int QuicStreamFactory::Job::DoConnectComplete(int rv) {
+ net_log_.EndEvent(NetLogEventType::QUIC_STREAM_FACTORY_JOB_CONNECT);
if (session_ && session_->error() == QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT) {
num_sent_client_hellos_ += session_->GetNumSentClientHellos();
if (num_sent_client_hellos_ >= QuicCryptoClientStream::kMaxClientHellos)
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698