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

Unified Diff: components/sync/model/entity_data.h

Issue 2781863004: [Sync] Implement EstimateMemoryUsage for SharedModelTypeProcessor and ModelTypeWorker (Closed)
Patch Set: Address comments Created 3 years, 9 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/engine_impl/worker_entity_tracker.cc ('k') | components/sync/model/entity_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/entity_data.h
diff --git a/components/sync/model/entity_data.h b/components/sync/model/entity_data.h
index ee7e18f298cbadee76748f18e31f9f3224107f84..25c2bbe426e81d3ab57c54a46074a215fb37e7cd 100644
--- a/components/sync/model/entity_data.h
+++ b/components/sync/model/entity_data.h
@@ -79,6 +79,9 @@ struct EntityData {
// Dumps all info into a DictionaryValue and returns it.
std::unique_ptr<base::DictionaryValue> ToDictionaryValue();
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
friend struct EntityDataTraits;
// Used to transfer the data without copying.
« no previous file with comments | « components/sync/engine_impl/worker_entity_tracker.cc ('k') | components/sync/model/entity_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698