#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() { … }
GURL StructuredMetricsReportingService::GetUploadUrl() const { … }
GURL StructuredMetricsReportingService::GetInsecureUploadUrl() const { … }
std::string_view StructuredMetricsReportingService::upload_mime_type() const { … }
MetricsLogUploader::MetricServiceType
StructuredMetricsReportingService::service_type() const { … }
void StructuredMetricsReportingService::LogActualUploadInterval(
base::TimeDelta interval) { … }
void StructuredMetricsReportingService::LogResponseOrErrorCode(
int response_code,
int error_code,
bool ) { … }
void StructuredMetricsReportingService::LogSuccessLogSize(size_t log_size) { … }
void StructuredMetricsReportingService::LogLargeRejection(size_t log_size) { … }
void StructuredMetricsReportingService::RegisterPrefs(
PrefRegistrySimple* registry) { … }
}