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

Unified Diff: components/sync/engine/sync_manager.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/engine/fake_sync_manager.cc ('k') | components/sync/engine_impl/sync_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/sync_manager.h
diff --git a/components/sync/engine/sync_manager.h b/components/sync/engine/sync_manager.h
index 6ee8e03c7dea50da69ac77329a573d7532b1a871..c0da9fcc497c8a64d0c286526f8353a9e23583ad 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
@@ -400,6 +406,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
« no previous file with comments | « components/sync/engine/fake_sync_manager.cc ('k') | components/sync/engine_impl/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698