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..83407748e1a2c21d4538adfdfad3cdfdb3e54fd1 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 ProcessMemoryDump; |
+} // namespace trace_event |
} // namespace base |
namespace net { |
@@ -651,6 +654,12 @@ 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_; } |
+ |
+ // Dumps memory allocation stats. |parent_dump_absolute_name| is the name |
+ // used by the parent MemoryAllocatorDump in the memory dump hierarchy. |
+ void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, |
+ const std::string& parent_dump_absolute_name) const; |
+ |
protected: |
// Allow the URLRequestJob class to control the is_pending() flag. |
void set_is_pending(bool value) { is_pending_ = value; } |