diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-01 07:57:35 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-01 07:57:35 +0000 |
commit | 490937ae6ee14316801453a05cc2aafc159f440e (patch) | |
tree | b7e42c639db713a935cc5f1d42241887f686a0e1 /net/http | |
parent | b8d1429079fa105c1ed01f8f5f1946c5980f0302 (diff) | |
download | chromium_src-490937ae6ee14316801453a05cc2aafc159f440e.zip chromium_src-490937ae6ee14316801453a05cc2aafc159f440e.tar.gz chromium_src-490937ae6ee14316801453a05cc2aafc159f440e.tar.bz2 |
Migrate spdy_session from using LOG() to NetLog. In the process, I'm
trying to move to a more consistent model of logging between the SpdySession,
SpdyStream, and HttpNetworkTransaction. Frame-level events belong on the
session, so that we can get a clean view of what happened on the session.
I'll be updating the spdy_stream next.
BUG=53956
TEST=none
Review URL: http://codereview.chromium.org/3212010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_network_transaction.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc index 46b74a5..2f96eff 100644 --- a/net/http/http_network_transaction.cc +++ b/net/http/http_network_transaction.cc @@ -695,6 +695,13 @@ int HttpNetworkTransaction::DoSendRequest() { } request_headers_ = request_line + request_headers.ToString(); + } else { + if (net_log_.IsLoggingAll()) { + net_log_.AddEvent( + NetLog::TYPE_HTTP_TRANSACTION_SEND_REQUEST_HEADERS, + new NetLogHttpRequestParameter(request_->url.spec(), + request_->extra_headers)); + } } headers_valid_ = false; |