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

Unified Diff: components/sync/syncable/directory_backing_store.h

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Fix presumit; fix Windows; git cl format 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
« no previous file with comments | « components/sync/syncable/directory.cc ('k') | components/sync/syncable/directory_backing_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/directory_backing_store.h
diff --git a/components/sync/syncable/directory_backing_store.h b/components/sync/syncable/directory_backing_store.h
index 1c0cdde786df6eb4f8d22ae5e2aecf5aae70a3fe..002f530499c82d1edadce644389f84178eb75166 100644
--- a/components/sync/syncable/directory_backing_store.h
+++ b/components/sync/syncable/directory_backing_store.h
@@ -20,6 +20,12 @@
#include "sql/connection.h"
#include "sql/statement.h"
+namespace base {
+namespace trace_event {
+class MemoryAllocatorDump;
+}
+}
+
namespace sync_pb {
class EntitySpecifics;
}
@@ -100,6 +106,8 @@ class DirectoryBackingStore : public base::NonThreadSafe {
// Returns true on success, false on error.
bool GetDatabasePageSize(int* page_size);
+ bool ReportMemoryUsage(base::trace_event::MemoryAllocatorDump* mad);
+
protected:
// For test classes.
DirectoryBackingStore(const std::string& dir_name,
« no previous file with comments | « components/sync/syncable/directory.cc ('k') | components/sync/syncable/directory_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698