chromium/components/metrics/metrics_reporting_service.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ReportingService specialized to report UMA metrics.

#include "components/metrics/metrics_reporting_service.h"

#include <string_view>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "components/metrics/metrics_logs_event_manager.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/metrics_service_client.h"
#include "components/metrics/unsent_log_store_metrics_impl.h"
#include "components/metrics/url_constants.h"
#include "components/prefs/pref_registry_simple.h"

namespace metrics {

// static
void MetricsReportingService::RegisterPrefs(PrefRegistrySimple* registry) {}

MetricsReportingService::MetricsReportingService(
    MetricsServiceClient* client,
    PrefService* local_state,
    MetricsLogsEventManager* logs_event_manager_)
    :{}

MetricsReportingService::~MetricsReportingService() {}

LogStore* MetricsReportingService::log_store() {}

GURL MetricsReportingService::GetUploadUrl() const {}

GURL MetricsReportingService::GetInsecureUploadUrl() const {}

std::string_view MetricsReportingService::upload_mime_type() const {}

MetricsLogUploader::MetricServiceType MetricsReportingService::service_type()
    const {}

void MetricsReportingService::LogActualUploadInterval(
    base::TimeDelta interval) {}

void MetricsReportingService::LogCellularConstraint(bool upload_canceled) {}

void MetricsReportingService::LogResponseOrErrorCode(int response_code,
                                                     int error_code,
                                                     bool was_https) {}

void MetricsReportingService::LogSuccessLogSize(size_t log_size) {}

void MetricsReportingService::LogSuccessMetadata(
    const std::string& staged_log) {}

void MetricsReportingService::LogLargeRejection(size_t log_size) {}

}  // namespace metrics