chromium/third_party/webrtc_overrides/metrics.cc

// 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 <string_view>

#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"

namespace webrtc {

// Define webrtc::metrics functions to provide webrtc with implementations.
namespace metrics {

// This class doesn't actually exist, so don't go looking for it :)
// This type is just fwd declared here in order to use it as an opaque type
// between the Histogram functions in this file.
class Histogram;

Histogram* HistogramFactoryGetCounts(std::string_view name,
                                     int min,
                                     int max,
                                     int bucket_count) {}

Histogram* HistogramFactoryGetCountsLinear(std::string_view name,
                                           int min,
                                           int max,
                                           int bucket_count) {}

Histogram* HistogramFactoryGetEnumeration(std::string_view name, int boundary) {}

Histogram* SparseHistogramFactoryGetEnumeration(std::string_view name,
                                                int boundary) {}

const char* GetHistogramName(Histogram* histogram_pointer) {}

void HistogramAdd(Histogram* histogram_pointer, int sample) {}
}  // namespace metrics
}  // namespace webrtc