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

Unified Diff: components/sync/engine/non_blocking_sync_common.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/base/proto_value_ptr.h ('k') | components/sync/engine/non_blocking_sync_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/non_blocking_sync_common.h
diff --git a/components/sync/engine/non_blocking_sync_common.h b/components/sync/engine/non_blocking_sync_common.h
index ef4a8bd3a197695c1d36a6ce3bc2fded22a80513..03b362534f94d5f233902a3ea4742c10ae486547 100644
--- a/components/sync/engine/non_blocking_sync_common.h
+++ b/components/sync/engine/non_blocking_sync_common.h
@@ -60,6 +60,10 @@ using CommitRequestDataList = std::vector<CommitRequestData>;
using CommitResponseDataList = std::vector<CommitResponseData>;
using UpdateResponseDataList = std::vector<UpdateResponseData>;
+// Returns the estimate of dynamically allocated memory in bytes.
+size_t EstimateMemoryUsage(const CommitRequestData& value);
+size_t EstimateMemoryUsage(const UpdateResponseData& value);
+
} // namespace syncer
#endif // COMPONENTS_SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_
« no previous file with comments | « components/sync/base/proto_value_ptr.h ('k') | components/sync/engine/non_blocking_sync_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698