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

Unified Diff: components/sync/core/sync_manager.h

Issue 2382443006: Sync MDP: implement MemoryDumpProvider
Patch Set: Created 4 years, 3 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
« no previous file with comments | « components/sync/base/unique_position.cc ('k') | components/sync/core/test/fake_sync_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/core/sync_manager.h
diff --git a/components/sync/core/sync_manager.h b/components/sync/core/sync_manager.h
index 5f3d1aff3a8a2d5e2c30cc2c5888040a9e95dec1..451988e94fd5ef42656f3314faa6b8b567f63cd8 100644
--- a/components/sync/core/sync_manager.h
+++ b/components/sync/core/sync_manager.h
@@ -35,6 +35,12 @@
class GURL;
+namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+}
+}
+
namespace sync_pb {
class EncryptedData;
} // namespace sync_pb
@@ -336,6 +342,9 @@ class SyncManager {
// Status-related getter. May be called on any thread.
virtual SyncStatus GetDetailedStatus() const = 0;
+ // Adds memory usage statistics to |pmd| for chrome://tracing.
+ virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) = 0;
+
// Call periodically from a database-safe thread to persist recent changes
// to the syncapi model.
virtual void SaveChanges() = 0;
« no previous file with comments | « components/sync/base/unique_position.cc ('k') | components/sync/core/test/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698