chromium/components/metrics/metrics_log_store.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.

#include "components/metrics/metrics_log_store.h"

#include <string_view>

#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/prefs/pref_registry_simple.h"

namespace metrics {

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

MetricsLogStore::MetricsLogStore(PrefService* local_state,
                                 StorageLimits storage_limits,
                                 const std::string& signing_key,
                                 MetricsLogsEventManager* logs_event_manager)
    :{}

MetricsLogStore::~MetricsLogStore() {}

void MetricsLogStore::LoadPersistedUnsentLogs() {}

void MetricsLogStore::StoreLog(const std::string& log_data,
                               MetricsLog::LogType log_type,
                               const LogMetadata& log_metadata,
                               MetricsLogsEventManager::CreateReason reason) {}

void MetricsLogStore::StoreLogInfo(
    std::unique_ptr<UnsentLogStore::LogInfo> log_info,
    size_t uncompressed_log_size,
    MetricsLog::LogType log_type,
    MetricsLogsEventManager::CreateReason reason) {}

void MetricsLogStore::Purge() {}

const std::string& MetricsLogStore::GetSigningKeyForLogType(
    MetricsLog::LogType log_type) {}

void MetricsLogStore::SetAlternateOngoingLogStore(
    std::unique_ptr<UnsentLogStore> log_store) {}

void MetricsLogStore::UnsetAlternateOngoingLogStore() {}

bool MetricsLogStore::has_unsent_logs() const {}

bool MetricsLogStore::has_staged_log() const {}

const std::string& MetricsLogStore::staged_log() const {}

const std::string& MetricsLogStore::staged_log_hash() const {}

const std::string& MetricsLogStore::staged_log_signature() const {}

std::optional<uint64_t> MetricsLogStore::staged_log_user_id() const {}

const LogMetadata MetricsLogStore::staged_log_metadata() const {}

bool MetricsLogStore::has_alternate_ongoing_log_store() const {}

const UnsentLogStore* MetricsLogStore::get_staged_log_queue() const {}

bool MetricsLogStore::alternate_ongoing_log_store_has_unsent_logs() const {}

bool MetricsLogStore::alternate_ongoing_log_store_has_staged_log() const {}

UnsentLogStore* MetricsLogStore::GetLogStoreForLogType(
    MetricsLog::LogType log_type) {}

void MetricsLogStore::StageNextLog() {}

void MetricsLogStore::DiscardStagedLog(std::string_view reason) {}

void MetricsLogStore::MarkStagedLogAsSent() {}

void MetricsLogStore::TrimAndPersistUnsentLogs(bool overwrite_in_memory_store) {}

}  // namespace metrics