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

Unified Diff: net/quic/chromium/quic_stream_factory.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/dns/dns_transaction.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | 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 378985bbf25ad21af847fc2eace88b3fd1bbbe00..c4312ce705eb56378c119acc4f3a3d2252d804e9 100644
--- a/net/quic/chromium/quic_stream_factory.cc
+++ b/net/quic/chromium/quic_stream_factory.cc
@@ -537,6 +537,8 @@ int QuicStreamFactory::Job::DoConnect() {
}
int QuicStreamFactory::Job::DoConnectComplete(int rv) {
+ TRACE_EVENT1(kNetTracingCategory, "QuicStreamFactory::Job::DoConnectComplete",
+ "host", key_.destination().host());
net_log_.EndEvent(NetLogEventType::QUIC_STREAM_FACTORY_JOB_CONNECT);
if (session_ && session_->error() == QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT) {
num_sent_client_hellos_ += session_->GetNumSentClientHellos();
@@ -587,6 +589,8 @@ int QuicStreamRequest::Request(const HostPortPair& destination,
QuicStringPiece method,
const NetLogWithSource& net_log,
const CompletionCallback& callback) {
+ TRACE_EVENT1(kNetTracingCategory, "QuicStreamRequest::Request", "host",
+ destination.host());
DCHECK(callback_.is_null());
DCHECK(factory_);
server_id_ = QuicServerId(HostPortPair::FromURL(url), privacy_mode);
« no previous file with comments | « net/dns/dns_transaction.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698