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

Unified Diff: net/url_request/url_request.h

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
Index: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index e1406f33633922e9ebc4625d62b3518b409d361c..36373ae52e224f092df75046f3c0f9ac7176e78c 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -40,6 +40,9 @@
namespace base {
class Value;
+namespace trace_event {
+class MemoryAllocatorDump;
+} // namespace trace_event
} // namespace base
namespace net {
@@ -651,6 +654,11 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Returns the error status of the request.
// Do not use! Going to be protected!
const URLRequestStatus& status() const { return status_; }
+
+ // Called by URLRequestContext to dump memory allocation stats. |dump| is
+ // the memory allocator dump of the URLRequestContext.
+ void DumpMemoryStats(base::trace_event::MemoryAllocatorDump* dump) const;
+
protected:
// Allow the URLRequestJob class to control the is_pending() flag.
void set_is_pending(bool value) { is_pending_ = value; }

Powered by Google App Engine
This is Rietveld 408576698