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

Unified Diff: net/url_request/url_request_job.cc

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (Closed)
Patch Set: self review Created 4 years 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/url_request/url_request_context.h ('K') | « net/url_request/url_request_job.h ('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_job.cc
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
index b315664de1ac52eafb49b36360be97e608d87ecc..730b3a3990cfca884463597b3188699608393ea4 100644
--- a/net/url_request/url_request_job.cc
+++ b/net/url_request/url_request_job.cc
@@ -141,6 +141,9 @@ class URLRequestJob::URLRequestJobSourceStream : public SourceStream {
std::string Description() const override { return std::string(); }
+ void DumpMemoryStats(
+ base::trace_event::MemoryAllocatorDump* dump) const override {}
+
private:
// It is safe to keep a raw pointer because |job_| owns the last stream which
// indirectly owns |this|. Therefore, |job_| will not be destroyed when |this|
@@ -360,6 +363,12 @@ void URLRequestJob::GetConnectionAttempts(ConnectionAttempts* out) const {
out->clear();
}
+void URLRequestJob::DumpMemoryStats(
+ base::trace_event::MemoryAllocatorDump* dump) const {
+ if (source_stream_)
+ source_stream_->DumpMemoryStats(dump);
+}
+
// static
GURL URLRequestJob::ComputeReferrerForRedirect(
URLRequest::ReferrerPolicy policy,
« net/url_request/url_request_context.h ('K') | « net/url_request/url_request_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698