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