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

Unified Diff: content/browser/dom_storage/dom_storage_namespace.h

Issue 1906243002: [tracing] Add a memory dump provider for DOM storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix dcheck and return value. Created 4 years, 7 months 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: content/browser/dom_storage/dom_storage_namespace.h
diff --git a/content/browser/dom_storage/dom_storage_namespace.h b/content/browser/dom_storage/dom_storage_namespace.h
index 238b7ca554e75c65c94d646cf6963b71457049af..fc091ede73b68aa9f13d1eda56d15fcb349b7ef7 100644
--- a/content/browser/dom_storage/dom_storage_namespace.h
+++ b/content/browser/dom_storage/dom_storage_namespace.h
@@ -15,6 +15,12 @@
#include "content/common/content_export.h"
#include "url/gurl.h"
+namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+}
+}
+
namespace content {
class DOMStorageArea;
@@ -76,6 +82,9 @@ class CONTENT_EXPORT DOMStorageNamespace
unsigned int CountInMemoryAreas() const;
+ // Adds memory statistics to |pmd| for chrome://tracing.
+ void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd);
+
private:
friend class base::RefCountedThreadSafe<DOMStorageNamespace>;
« no previous file with comments | « content/browser/dom_storage/dom_storage_context_impl_unittest.cc ('k') | content/browser/dom_storage/dom_storage_namespace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698