// services/network/public/mojom/ocsp_verify_result.mojom-send-validation.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.

#ifndef SERVICES_NETWORK_PUBLIC_MOJOM_OCSP_VERIFY_RESULT_MOJOM_SEND_VALIDATION_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_OCSP_VERIFY_RESULT_MOJOM_SEND_VALIDATION_H_

#include "services/network/public/mojom/ocsp_verify_result.mojom-shared-internal.h"

#include "services/network/public/mojom/ocsp_verify_result.mojom-data-view.h"

#include "mojo/public/cpp/bindings/lib/send_validation_type.h"
#include "mojo/public/cpp/bindings/lib/send_validation.h"
#include "mojo/public/cpp/bindings/lib/has_send_validation_helper.h"

namespace mojo::internal {
template <typename MaybeConstUserType>
struct HasSendValidationSerialize<::network::mojom::OCSPVerifyResultResponseStatus, MaybeConstUserType>
    : std::false_type {};
template <typename MaybeConstUserType>
struct HasSendValidationSerialize<::network::mojom::OCSPRevocationStatus, MaybeConstUserType>
    : std::false_type {};

template <typename MaybeConstUserType, mojo::internal::SendValidation send_validation>
struct SendValidationSerializer<::network::mojom::OCSPVerifyResultDataView, MaybeConstUserType, send_validation> {
  using UserType = typename std::remove_const<MaybeConstUserType>::type;
  using Traits = StructTraits<::network::mojom::OCSPVerifyResultDataView, UserType>;
  static void Serialize(
      MaybeConstUserType& input,
      mojo::internal::MessageFragment<::network::mojom::internal::OCSPVerifyResult_Data>& fragment) {
    if (CallIsNullIfExists<Traits>(input))
      return;
    fragment.Allocate();

      
      mojo::internal::Serialize<::network::mojom::OCSPVerifyResultResponseStatus>(
        Traits::response_status(input),
        &fragment->response_status);

      
      mojo::internal::Serialize<::network::mojom::OCSPRevocationStatus>(
        Traits::revocation_status(input),
        &fragment->revocation_status);
  }
};

}  // namespace mojo::internal

#endif  // SERVICES_NETWORK_PUBLIC_MOJOM_OCSP_VERIFY_RESULT_MOJOM_SEND_VALIDATION_H_