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

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

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Created 4 years, 2 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: components/sync/engine/sync_manager.h
diff --git a/components/sync/engine/sync_manager.h b/components/sync/engine/sync_manager.h
index 71bfcdc845f54d1b2fd1b2929386300cd4b1755d..6d4265d19963b8cc982a62b07037071a7772326e 100644
--- a/components/sync/engine/sync_manager.h
+++ b/components/sync/engine/sync_manager.h
@@ -35,6 +35,12 @@
class GURL;
+namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+} // namespace trace_event
+} // namespace base
+
namespace sync_pb {
class EncryptedData;
} // namespace sync_pb
@@ -395,6 +401,9 @@ class SyncManager {
// chrome account. See ClientConfigParams proto message for more info.
// Note: this does not trigger a sync cycle. It just updates the sync context.
virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
+
+ // Adds memory usage statistics to |pmd| for chrome://tracing.
+ virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) = 0;
};
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698