// services/network/public/mojom/net_log.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 SERVICES_NETWORK_PUBLIC_MOJOM_NET_LOG_MOJOM_DATA_VIEW_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_NET_LOG_MOJOM_DATA_VIEW_H_

#include <stdint.h>

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

#include "services/network/public/mojom/net_log.mojom-shared-internal.h"
#include "mojo/public/mojom/base/file.mojom-shared.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "mojo/public/mojom/base/values.mojom-shared.h"
#include "services/network/public/mojom/network_param.mojom-shared.h"


namespace network::mojom {


}  // network::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace network::mojom {


enum class NetLogCaptureMode : int32_t {
  
  HEAVILY_REDACTED = 0,
  
  DEFAULT = 1,
  
  INCLUDE_PRIVACY_INFO = 2,
  
  EVERYTHING = 3,
  kMinValue = 0,
  kMaxValue = 3,
};

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

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


enum class NetLogFileFormat : int32_t {
  
  JSON = 0,
  
  NDJSON = 1,
  kMinValue = 0,
  kMaxValue = 1,
};

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

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


enum class NetLogEventPhase : int32_t {
  
  BEGIN = 0,
  
  END = 1,
  
  NONE = 2,
  kMinValue = 0,
  kMaxValue = 2,
};

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

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

using NetLogExporterPtrDataView =
    mojo::InterfacePtrDataView<NetLogExporterInterfaceBase>;
using NetLogExporterRequestDataView =
    mojo::InterfaceRequestDataView<NetLogExporterInterfaceBase>;
using NetLogExporterAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<NetLogExporterInterfaceBase>;
using NetLogExporterAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<NetLogExporterInterfaceBase>;
class NetLogProxySourceInterfaceBase {};

using NetLogProxySourcePtrDataView =
    mojo::InterfacePtrDataView<NetLogProxySourceInterfaceBase>;
using NetLogProxySourceRequestDataView =
    mojo::InterfaceRequestDataView<NetLogProxySourceInterfaceBase>;
using NetLogProxySourceAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<NetLogProxySourceInterfaceBase>;
using NetLogProxySourceAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<NetLogProxySourceInterfaceBase>;
class NetLogProxySinkInterfaceBase {};

using NetLogProxySinkPtrDataView =
    mojo::InterfacePtrDataView<NetLogProxySinkInterfaceBase>;
using NetLogProxySinkRequestDataView =
    mojo::InterfaceRequestDataView<NetLogProxySinkInterfaceBase>;
using NetLogProxySinkAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<NetLogProxySinkInterfaceBase>;
using NetLogProxySinkAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<NetLogProxySinkInterfaceBase>;


}  // network::mojom

#endif  // SERVICES_NETWORK_PUBLIC_MOJOM_NET_LOG_MOJOM_DATA_VIEW_H_