// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "mojo/public/cpp/bindings/lib/message_size_estimator.h" namespace mojo::internal { // The number of samples to use to determine the size of the allocation. constexpr size_t kSampleSize = …; MessageSizeEstimator::MessageSizeEstimator() = default; MessageSizeEstimator::~MessageSizeEstimator() = default; void MessageSizeEstimator::EnablePredictiveAllocation(uint32_t message_name) { … } size_t MessageSizeEstimator::EstimatePayloadSize(uint32_t message_name) const { … } void MessageSizeEstimator::TrackPayloadSize(uint32_t message_name, size_t size) { … } } // namespace mojo::internal