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

Unified Diff: net/base/sdch_manager.h

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (Closed)
Patch Set: rebased to 7f3d142161b15869f6bea58ac43c5f52ce5834ac Created 4 years, 1 month 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/base/sdch_manager.h
diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h
index dcb47717851b2c825785bf282bd95c370603ac63..10f039bbfb27a190d7eac84ad6580b544bb9ae24 100644
--- a/net/base/sdch_manager.h
+++ b/net/base/sdch_manager.h
@@ -32,6 +32,10 @@ class GURL;
namespace base {
class Value;
+
+namespace trace_event {
+class ProcessMemoryDump;
+}
}
namespace net {
@@ -195,6 +199,10 @@ class NET_EXPORT SdchManager {
void AddObserver(SdchObserver* observer);
void RemoveObserver(SdchObserver* observer);
+ // Called by URLRequestHttpJob to dump memory allocation stats.
+ // |pmd| is the browser process memory dump.
+ void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd) const;
+
// Logs an SDCH failure to UMA and |netlog|.
static void LogSdchProblem(NetLogWithSource netlog, SdchProblemCode problem);

Powered by Google App Engine
This is Rietveld 408576698