// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/webrtc/audio_delay_stats_reporter.h" #include <numeric> #include "base/metrics/histogram_macros.h" namespace media { namespace { // No input data or overflow checks are made here. Input values should be small // compared to the int range, and number of values should not be too large. int CalculateVariance(const std::vector<int>& values) { … } } // namespace AudioDelayStatsReporter::AudioDelayStatsReporter(int variance_window_size) : … { … } AudioDelayStatsReporter::~AudioDelayStatsReporter() { … } void AudioDelayStatsReporter::ReportDelay(base::TimeDelta capture_delay, base::TimeDelta render_delay) { … } } // namespace media