| Index: net/url_request/url_request.cc
|
| diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
|
| index 368b91ae3eff103afdb77ae5bb48c5e20bc9eeb9..43e82b394d50581f4d973a21ac0c408780080108 100644
|
| --- a/net/url_request/url_request.cc
|
| +++ b/net/url_request/url_request.cc
|
| @@ -43,6 +43,10 @@
|
| #include "url/gurl.h"
|
| #include "url/origin.h"
|
|
|
| +#include "base/trace_event/memory_allocator_dump.h"
|
| +#include "base/trace_event/process_memory_dump.h"
|
| +#include "base/strings/stringprintf.h"
|
| +
|
| using base::Time;
|
| using std::string;
|
|
|
| @@ -1213,6 +1217,18 @@ void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const {
|
| out->clear();
|
| }
|
|
|
| +void URLRequest::PopulateAllocatorDump(
|
| + base::trace_event::MemoryAllocatorDump* dump) const {
|
| + std::string name =
|
| + base::StringPrintf("%s/url_request/%p", dump->absolute_name().c_str(), this);
|
| + base::trace_event::MemoryAllocatorDump* url_request_dump =
|
| + dump->process_memory_dump()->CreateAllocatorDump(name);
|
| + if (job_) {
|
| + DCHECK(url_request_dump);
|
| + //job_->PopulateAllocatorDump(url_request_dump);
|
| + }
|
| +}
|
| +
|
| void URLRequest::set_status(URLRequestStatus status) {
|
| DCHECK(status_.is_io_pending() || status_.is_success() ||
|
| (!status.is_success() && !status.is_io_pending()));
|
|
|