// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_METRICS_METRICS_SERVICE_OBSERVER_H_ #define COMPONENTS_METRICS_METRICS_SERVICE_OBSERVER_H_ #include <memory> #include <optional> #include <string> #include <string_view> #include <vector> #include "base/callback_list.h" #include "base/containers/flat_map.h" #include "base/files/file_path.h" #include "components/metrics/metrics_logs_event_manager.h" namespace metrics { // Observes logs generated by a metrics collection system (UMA and UKM) and // stores them in-memory. This class also provides a way to export the logs in a // JSON format, which includes metadata, proto data, as well as the events // describing the lifecycle of the logs. class MetricsServiceObserver : public MetricsLogsEventManager::Observer { … }; } // namespace metrics #endif // COMPONENTS_METRICS_METRICS_SERVICE_OBSERVER_H_