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

Unified Diff: net/url_request/url_request_job.cc

Issue 1569673002: [NOT FOR LANDING] Detailed loading traces Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job.cc
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
index cbefc9e3f06845da0fd14d2364426f4978dc93a8..98fe4a25b6f687a4ce76f1fdfd2984d4c8e0e2b6 100644
--- a/net/url_request/url_request_job.cc
+++ b/net/url_request/url_request_job.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/trace_event/trace_event.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/location.h"
@@ -98,6 +99,8 @@ void URLRequestJob::SetPriority(RequestPriority priority) {
}
void URLRequestJob::Kill() {
+ TRACE_EVENT0("toplevel", "URLRequestJob::Kill");
+
weak_factory_.InvalidateWeakPtrs();
// Make sure the URLRequest is notified that the job is done. This assumes
// that the URLRequest took care of setting its error status before calling
@@ -364,6 +367,7 @@ void URLRequestJob::NotifySSLCertificateError(const SSLInfo& ssl_info,
}
bool URLRequestJob::CanGetCookies(const CookieList& cookie_list) const {
+ TRACE_EVENT0("toplevel", "URLRequestJob::CanGetCookies");
return request_->CanGetCookies(cookie_list);
}
@@ -381,6 +385,7 @@ void URLRequestJob::NotifyBeforeNetworkStart(bool* defer) {
}
void URLRequestJob::NotifyHeadersComplete() {
+ TRACE_EVENT0("toplevel", "URLRequestJob::NotifyHeadersComplete");
if (has_handled_response_)
return;
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698