summaryrefslogtreecommitdiffstats
path: root/net/http/http_stream_parser.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 03:04:20 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 03:04:20 +0000
commit6990bdfce1a73519e2c4ae08fd13d6896caeaa81 (patch)
treeb9af6bfbc48468685cd640702524a8545493cda1 /net/http/http_stream_parser.cc
parent0b0c008023454cbb6c9328f23bda8422db46bebd (diff)
downloadchromium_src-6990bdfce1a73519e2c4ae08fd13d6896caeaa81.zip
chromium_src-6990bdfce1a73519e2c4ae08fd13d6896caeaa81.tar.gz
chromium_src-6990bdfce1a73519e2c4ae08fd13d6896caeaa81.tar.bz2
Remove the TRACE_EVENT for network states. This is no longer needed, since most of these states are captured by the NetLog.
Review URL: http://codereview.chromium.org/2105013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_parser.cc')
-rw-r--r--net/http/http_stream_parser.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
index a7c22a3..bcbce58 100644
--- a/net/http/http_stream_parser.cc
+++ b/net/http/http_stream_parser.cc
@@ -6,7 +6,6 @@
#include "base/compiler_specific.h"
#include "base/histogram.h"
-#include "base/trace_event.h"
#include "net/base/io_buffer.h"
#include "net/http/http_request_info.h"
#include "net/http/http_response_headers.h"
@@ -128,47 +127,39 @@ int HttpStreamParser::DoLoop(int result) {
do {
switch (io_state_) {
case STATE_SENDING_HEADERS:
- TRACE_EVENT_BEGIN("http.write_headers", request_, request_->url.spec());
if (result < 0)
can_do_more = false;
else
result = DoSendHeaders(result);
- TRACE_EVENT_END("http.write_headers", request_, request_->url.spec());
break;
case STATE_SENDING_BODY:
- TRACE_EVENT_BEGIN("http.write_body", request_, request_->url.spec());
if (result < 0)
can_do_more = false;
else
result = DoSendBody(result);
- TRACE_EVENT_END("http.write_body", request_, request_->url.spec());
break;
case STATE_REQUEST_SENT:
DCHECK(result != ERR_IO_PENDING);
can_do_more = false;
break;
case STATE_READ_HEADERS:
- TRACE_EVENT_BEGIN("http.read_headers", request_, request_->url.spec());
net_log_.BeginEvent(NetLog::TYPE_HTTP_STREAM_PARSER_READ_HEADERS, NULL);
result = DoReadHeaders();
break;
case STATE_READ_HEADERS_COMPLETE:
result = DoReadHeadersComplete(result);
net_log_.EndEvent(NetLog::TYPE_HTTP_STREAM_PARSER_READ_HEADERS, NULL);
- TRACE_EVENT_END("http.read_headers", request_, request_->url.spec());
break;
case STATE_BODY_PENDING:
DCHECK(result != ERR_IO_PENDING);
can_do_more = false;
break;
case STATE_READ_BODY:
- TRACE_EVENT_BEGIN("http.read_body", request_, request_->url.spec());
result = DoReadBody();
// DoReadBodyComplete handles error conditions.
break;
case STATE_READ_BODY_COMPLETE:
result = DoReadBodyComplete(result);
- TRACE_EVENT_END("http.read_body", request_, request_->url.spec());
break;
case STATE_DONE:
DCHECK(result != ERR_IO_PENDING);