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

Unified Diff: components/sync/driver/data_type_controller.h

Issue 2949923004: Reland: [Sync] Record sync memory usage in histogram broken by datatypes (Closed)
Patch Set: Fix linker error Created 3 years, 6 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/driver/data_type_controller.h
diff --git a/components/sync/driver/data_type_controller.h b/components/sync/driver/data_type_controller.h
index 7f9aecc5a400aea6110cbb08324f52ebb587fa58..8fd7bd83067410ccec3dd26644e90ef3ec7104b8 100644
--- a/components/sync/driver/data_type_controller.h
+++ b/components/sync/driver/data_type_controller.h
@@ -162,6 +162,9 @@ class DataTypeController : public base::SupportsWeakPtr<DataTypeController> {
// Used to display entity counts in chrome://sync-internals.
virtual void GetStatusCounters(const StatusCountersCallback& callback) = 0;
+ // Estimates memory usage of type and records it into histogram.
+ virtual void RecordMemoryUsageHistogram() = 0;
+
protected:
explicit DataTypeController(ModelType type);
« no previous file with comments | « components/sync/base/data_type_histogram.cc ('k') | components/sync/driver/directory_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698