chromium/components/metrics/structured/reporting/structured_metrics_reporting_service.cc

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

#include "components/metrics/structured/reporting/structured_metrics_reporting_service.h"

#include <string_view>

#include "base/metrics/histogram_functions.h"
#include "components/metrics/metrics_service_client.h"
#include "components/metrics/structured/reporting/structured_metrics_log_metrics.h"
#include "components/metrics/structured/structured_metrics_prefs.h"
#include "components/metrics/url_constants.h"
#include "components/prefs/pref_registry_simple.h"

namespace metrics::structured::reporting {
StructuredMetricsReportingService::StructuredMetricsReportingService(
    MetricsServiceClient* client,
    PrefService* local_state,
    const UnsentLogStore::UnsentLogStoreLimits& storage_limits)
    :{}

void StructuredMetricsReportingService::StoreLog(
    const std::string& serialized_log,
    metrics::MetricsLogsEventManager::CreateReason reason) {}

metrics::LogStore* StructuredMetricsReportingService::log_store() {}

void StructuredMetricsReportingService::Purge() {}

// Getters for MetricsLogUploader parameters.
GURL StructuredMetricsReportingService::GetUploadUrl() const {}
GURL StructuredMetricsReportingService::GetInsecureUploadUrl() const {}

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

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

// Methods for recording data to histograms.
void StructuredMetricsReportingService::LogActualUploadInterval(
    base::TimeDelta interval) {}

void StructuredMetricsReportingService::LogResponseOrErrorCode(
    int response_code,
    int error_code,
    bool /*was_http*/) {}

void StructuredMetricsReportingService::LogSuccessLogSize(size_t log_size) {}

void StructuredMetricsReportingService::LogLargeRejection(size_t log_size) {}

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

}  // namespace metrics::structured::reporting