Index: components/sync/driver/glue/sync_backend_host_core.h |
diff --git a/components/sync/driver/glue/sync_backend_host_core.h b/components/sync/driver/glue/sync_backend_host_core.h |
index ac70b2ed45c98717270e1484a1ea69899765b291..692d389d6051d6e4655f1b0aeef1d32784aec8e4 100644 |
--- a/components/sync/driver/glue/sync_backend_host_core.h |
+++ b/components/sync/driver/glue/sync_backend_host_core.h |
@@ -14,6 +14,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/timer/timer.h" |
+#include "base/trace_event/memory_dump_provider.h" |
#include "components/invalidation/public/invalidation.h" |
#include "components/sync/base/cancelation_signal.h" |
#include "components/sync/core/shutdown_reason.h" |
@@ -94,6 +95,7 @@ struct DoConfigureSyncerTypes { |
class SyncBackendHostCore |
: public base::RefCountedThreadSafe<SyncBackendHostCore>, |
+ public base::trace_event::MemoryDumpProvider, |
public syncer::SyncEncryptionHandler::Observer, |
public syncer::SyncManager::Observer, |
public syncer::TypeDebugInfoObserver { |
@@ -103,6 +105,10 @@ class SyncBackendHostCore |
bool has_sync_setup_completed, |
const base::WeakPtr<SyncBackendHostImpl>& backend); |
+ // MemoryDumpProvider implementation. |
+ bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, |
+ base::trace_event::ProcessMemoryDump* pmd) override; |
+ |
// SyncManager::Observer implementation. The Core just acts like an air |
// traffic controller here, forwarding incoming messages to appropriate |
// landing threads. |