// components/metrics/public/mojom/histogram_fetcher.mojom-data-view.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef COMPONENTS_METRICS_PUBLIC_MOJOM_HISTOGRAM_FETCHER_MOJOM_DATA_VIEW_H_
#define COMPONENTS_METRICS_PUBLIC_MOJOM_HISTOGRAM_FETCHER_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>

#include "components/metrics/public/mojom/histogram_fetcher.mojom-shared-internal.h"
#include "mojo/public/mojom/base/byte_string.mojom-shared.h"
#include "mojo/public/mojom/base/shared_memory.mojom-shared.h"


namespace metrics::mojom {


}  // metrics::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace metrics::mojom {


enum class UmaChildPingStatus : int32_t {
  
  BROWSER_SENT_IPC = 0,
  
  CHILD_RECEIVED_IPC = 1,
  
  BROWSER_REPLY_CALLBACK = 2,
  kMinValue = 0,
  kMaxValue = 2,
};

 std::ostream& operator<<(std::ostream& os, UmaChildPingStatus value);
inline bool IsKnownEnumValue(UmaChildPingStatus value) {
  return internal::UmaChildPingStatus_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(UmaChildPingStatus) {
  return true;
}


enum class UmaPingCallSource : int32_t {
  
  PERIODIC = 0,
  
  SHARED_MEMORY_SET_UP = 1,
  kMinValue = 0,
  kMaxValue = 1,
};

 std::ostream& operator<<(std::ostream& os, UmaPingCallSource value);
inline bool IsKnownEnumValue(UmaPingCallSource value) {
  return internal::UmaPingCallSource_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(UmaPingCallSource) {
  return true;
}
// Interface base classes. They are used for type safety check.
class ChildHistogramFetcherFactoryInterfaceBase {};

using ChildHistogramFetcherFactoryPtrDataView =
    mojo::InterfacePtrDataView<ChildHistogramFetcherFactoryInterfaceBase>;
using ChildHistogramFetcherFactoryRequestDataView =
    mojo::InterfaceRequestDataView<ChildHistogramFetcherFactoryInterfaceBase>;
using ChildHistogramFetcherFactoryAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<ChildHistogramFetcherFactoryInterfaceBase>;
using ChildHistogramFetcherFactoryAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<ChildHistogramFetcherFactoryInterfaceBase>;
class ChildHistogramFetcherInterfaceBase {};

using ChildHistogramFetcherPtrDataView =
    mojo::InterfacePtrDataView<ChildHistogramFetcherInterfaceBase>;
using ChildHistogramFetcherRequestDataView =
    mojo::InterfaceRequestDataView<ChildHistogramFetcherInterfaceBase>;
using ChildHistogramFetcherAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<ChildHistogramFetcherInterfaceBase>;
using ChildHistogramFetcherAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<ChildHistogramFetcherInterfaceBase>;


}  // metrics::mojom

#endif  // COMPONENTS_METRICS_PUBLIC_MOJOM_HISTOGRAM_FETCHER_MOJOM_DATA_VIEW_H_