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

Unified Diff: content/browser/dom_storage/session_storage_database.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, 8 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/session_storage_database.h
diff --git a/content/browser/dom_storage/session_storage_database.h b/content/browser/dom_storage/session_storage_database.h
index 7ca2da71846f9198c9f80912e899151fdfafa417..81c631337a5fdd0f37190dcb5025ac5919124cdf 100644
--- a/content/browser/dom_storage/session_storage_database.h
+++ b/content/browser/dom_storage/session_storage_database.h
@@ -27,6 +27,12 @@ struct ReadOptions;
class WriteBatch;
} // namespace leveldb
+namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+}
+}
+
namespace content {
// SessionStorageDatabase holds the data from multiple namespaces and multiple
@@ -75,6 +81,9 @@ class CONTENT_EXPORT SessionStorageDatabase :
bool ReadNamespacesAndOrigins(
std::map<std::string, std::vector<GURL> >* namespaces_and_origins);
+ // Adds memory statistics to |pmd| for chrome://tracing.
+ void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd);
+
private:
friend class base::RefCountedThreadSafe<SessionStorageDatabase>;
class DBOperation;
« no previous file with comments | « content/browser/dom_storage/dom_storage_task_runner.cc ('k') | content/browser/dom_storage/session_storage_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698