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

Unified Diff: net/http/http_response_info.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/http/http_response_headers.cc ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_response_info.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index fe6e57e56e1924a889d8e3c4e53b025f08e2f9e3..fb6b50947f02395f911efe65454b7b345a136595 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -4,6 +4,7 @@
#include "net/http/http_response_info.h"
+#include "base/trace_event/trace_event.h"
#include "base/logging.h"
#include "base/pickle.h"
#include "base/time/time.h"
@@ -136,6 +137,7 @@ HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs)
metadata(rhs.metadata) {}
HttpResponseInfo::~HttpResponseInfo() {
+ TRACE_EVENT0("toplevel", "HttpResponseInfo::~HttpResponseInfo");
}
HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) {
@@ -167,6 +169,8 @@ bool HttpResponseInfo::InitFromPickle(const base::Pickle& pickle,
bool* response_truncated) {
base::PickleIterator iter(pickle);
+ TRACE_EVENT0("toplevel", "HttpResponseInfo::InitFromPickle::A");
+
// Read flags and verify version
int flags;
if (!iter.ReadInt(&flags))
@@ -202,12 +206,14 @@ bool HttpResponseInfo::InitFromPickle(const base::Pickle& pickle,
if (!ssl_info.cert.get())
return false;
}
+
if (flags & RESPONSE_INFO_HAS_CERT_STATUS) {
CertStatus cert_status;
if (!iter.ReadUInt32(&cert_status))
return false;
ssl_info.cert_status = cert_status;
}
+
if (flags & RESPONSE_INFO_HAS_SECURITY_BITS) {
int security_bits;
if (!iter.ReadInt(&security_bits))
« no previous file with comments | « net/http/http_response_headers.cc ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698