summaryrefslogtreecommitdiffstats
path: root/net/http/http_stream_parser.cc
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 19:07:21 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 19:07:21 +0000
commit1239d2873c81b96ba283981b7fc35bcf566ca7d1 (patch)
tree12c4c23ebf238b669e3580bb1076de8b0f8b98ac /net/http/http_stream_parser.cc
parent90610762cb7f004ad28dde9b9763714bf95731d7 (diff)
downloadchromium_src-1239d2873c81b96ba283981b7fc35bcf566ca7d1.zip
chromium_src-1239d2873c81b96ba283981b7fc35bcf566ca7d1.tar.gz
chromium_src-1239d2873c81b96ba283981b7fc35bcf566ca7d1.tar.bz2
Add more load log points near HttpNetworkTransaction::ReadHeaders
TEST=none BUG=27324 Review URL: http://codereview.chromium.org/501034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_parser.cc')
-rw-r--r--net/http/http_stream_parser.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
index cd58ee2..a83616b 100644
--- a/net/http/http_stream_parser.cc
+++ b/net/http/http_stream_parser.cc
@@ -14,7 +14,8 @@
namespace net {
HttpStreamParser::HttpStreamParser(ClientSocketHandle* connection,
- GrowableIOBuffer* read_buffer)
+ GrowableIOBuffer* read_buffer,
+ LoadLog* load_log)
: io_state_(STATE_NONE),
request_(NULL),
request_headers_(NULL),
@@ -29,6 +30,7 @@ HttpStreamParser::HttpStreamParser(ClientSocketHandle* connection,
user_read_buf_len_(0),
user_callback_(NULL),
connection_(connection),
+ load_log_(load_log),
ALLOW_THIS_IN_INITIALIZER_LIST(
io_callback_(this, &HttpStreamParser::OnIOComplete)) {
DCHECK_EQ(0, read_buffer->offset());
@@ -141,10 +143,14 @@ int HttpStreamParser::DoLoop(int result) {
break;
case STATE_READ_HEADERS:
TRACE_EVENT_BEGIN("http.read_headers", request_, request_->url.spec());
+ LoadLog::BeginEvent(load_log_,
+ LoadLog::TYPE_HTTP_STREAM_PARSER_READ_HEADERS);
result = DoReadHeaders();
break;
case STATE_READ_HEADERS_COMPLETE:
result = DoReadHeadersComplete(result);
+ LoadLog::EndEvent(load_log_,
+ LoadLog::TYPE_HTTP_STREAM_PARSER_READ_HEADERS);
TRACE_EVENT_END("http.read_headers", request_, request_->url.spec());
break;
case STATE_BODY_PENDING: