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

Unified Diff: net/http/bidirectional_stream.cc

Issue 2016863002: Log BIDIRECTIONL_STREAM_ALIVE before HTTP_STREAM_REQUEST (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a test Created 4 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 | « no previous file | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/bidirectional_stream.cc
diff --git a/net/http/bidirectional_stream.cc b/net/http/bidirectional_stream.cc
index 8b83c1e93515f06efaa4db3b5aaca903b35ec1ca..5d5b7f9b20abc0fb91d5204aab10f7e75889150f 100644
--- a/net/http/bidirectional_stream.cc
+++ b/net/http/bidirectional_stream.cc
@@ -90,6 +90,13 @@ BidirectionalStream::BidirectionalStream(
DCHECK(delegate_);
DCHECK(request_info_);
+ if (net_log_.IsCapturing()) {
mef 2016/06/01 17:25:40 Should this go down below the failure exit if not
xunjieli 2016/06/01 17:38:45 I think it should be before the failure exit. In c
mef 2016/06/01 17:45:33 sgtm, thanks for explanation!
xunjieli 2016/06/01 22:23:28 thanks for the review!
+ net_log_.BeginEvent(
+ NetLog::TYPE_BIDIRECTIONAL_STREAM_ALIVE,
+ base::Bind(&NetLogCallback, &request_info_->url, &request_info_->method,
+ base::Unretained(&request_info_->extra_headers)));
+ }
+
SSLConfig server_ssl_config;
session->ssl_config_service()->GetSSLConfig(&server_ssl_config);
session->GetAlpnProtos(&server_ssl_config.alpn_protos);
@@ -116,12 +123,6 @@ BidirectionalStream::BidirectionalStream(
// Check that HttpStreamFactory does not invoke OnBidirectionalStreamImplReady
// synchronously.
DCHECK(!stream_impl_);
- if (net_log_.IsCapturing()) {
- net_log_.BeginEvent(
- NetLog::TYPE_BIDIRECTIONAL_STREAM_ALIVE,
- base::Bind(&NetLogCallback, &request_info_->url, &request_info_->method,
- base::Unretained(&request_info_->extra_headers)));
- }
}
BidirectionalStream::~BidirectionalStream() {
« no previous file with comments | « no previous file | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698