// 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. #ifndef COMPONENTS_DOWNLOAD_PUBLIC_COMMON_RATE_ESTIMATOR_H_ #define COMPONENTS_DOWNLOAD_PUBLIC_COMMON_RATE_ESTIMATOR_H_ #include <stddef.h> #include <stdint.h> #include <vector> #include "base/time/time.h" #include "components/download/public/common/download_export.h" namespace download { // RateEstimator generates rate estimates based on recent activity. // // Internally it uses a fixed-size ring buffer, and develops estimates // based on a small sliding window of activity. class COMPONENTS_DOWNLOAD_EXPORT RateEstimator { … }; } // namespace download #endif // COMPONENTS_DOWNLOAD_PUBLIC_COMMON_RATE_ESTIMATOR_H_