1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef COMPONENTS_METRICS_HISTOGRAM_CHILD_PROCESS_H_ 6 #define COMPONENTS_METRICS_HISTOGRAM_CHILD_PROCESS_H_ 7 8 #include "components/metrics/public/mojom/histogram_fetcher.mojom-forward.h" 9 #include "mojo/public/cpp/bindings/pending_receiver.h" 10 11 namespace metrics { 12 13 // Interface that is implemented by the various child process types that can 14 // be added to HistogramController for collecting histogram data. 15 class HistogramChildProcess { 16 public: 17 // Called to connect to a ChildHistogramFetcherFactory implementation in the 18 // child process. 19 virtual void BindChildHistogramFetcherFactory( 20 mojo::PendingReceiver<mojom::ChildHistogramFetcherFactory> factory) = 0; 21 }; 22 23 } // namespace metrics 24 25 #endif // COMPONENTS_METRICS_HISTOGRAM_CHILD_PROCESS_H_ 26