// 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. #ifndef COMPONENTS_METRICS_SINGLE_SAMPLE_METRICS_FACTORY_IMPL_H_ #define COMPONENTS_METRICS_SINGLE_SAMPLE_METRICS_FACTORY_IMPL_H_ #include <string> #include "base/metrics/single_sample_metrics.h" #include "components/metrics/public/mojom/single_sample_metrics.mojom.h" #include "components/metrics/single_sample_metrics.h" namespace metrics { // SingleSampleMetricsFactory implementation for creating SingleSampleMetric // instances that communicate over mojo to instances in another process. // // Persistance outside of the current process allows these metrics to record a // sample even in the event of sudden process termination. As an example, this // is useful for garbage collected objects which may never get a chance to run // their destructors in the event of a fast shutdown event (process kill). class SingleSampleMetricsFactoryImpl : public base::SingleSampleMetricsFactory { … }; } // namespace metrics #endif // COMPONENTS_METRICS_SINGLE_SAMPLE_METRICS_FACTORY_IMPL_H_