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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 1834273002: Add TRACE_EVENT macros to net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 4 years, 9 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
« net/socket/ssl_client_socket_pool.cc ('K') | « net/udp/udp_socket_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 9cc020974e82620b41f77f429e293e92d8e8e7f7..2347938fac57174f71b5cf8a351df9a8a58f4712 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -20,6 +20,7 @@
#include "base/strings/string_util.h"
#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
+#include "base/trace_event/trace_event.h"
#include "base/values.h"
#include "net/base/host_port_pair.h"
#include "net/base/load_flags.h"
@@ -954,6 +955,8 @@ void URLRequestHttpJob::ProcessExpectCTHeader() {
}
void URLRequestHttpJob::OnStartCompleted(int result) {
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("net"),
+ "URLRequestHttpJob::OnStartCompleted");
RecordTimer();
// If the request was destroyed, then there is no more work to do.
@@ -1062,6 +1065,8 @@ void URLRequestHttpJob::OnHeadersReceivedCallback(int result) {
}
void URLRequestHttpJob::OnReadCompleted(int result) {
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("net"),
+ "URLRequestHttpJob::OnReadCompleted");
read_in_progress_ = false;
DCHECK_NE(ERR_IO_PENDING, result);
« net/socket/ssl_client_socket_pool.cc ('K') | « net/udp/udp_socket_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698