// content/public/common/extra_mojo_js_features.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 CONTENT_PUBLIC_COMMON_EXTRA_MOJO_JS_FEATURES_MOJOM_SEND_VALIDATION_H_
#define CONTENT_PUBLIC_COMMON_EXTRA_MOJO_JS_FEATURES_MOJOM_SEND_VALIDATION_H_

#include "content/public/common/extra_mojo_js_features.mojom-shared-internal.h"

#include "content/public/common/extra_mojo_js_features.mojom-data-view.h"

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

namespace mojo::internal {

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

      fragment->file_system_access = Traits::file_system_access(input);
  }
};

}  // namespace mojo::internal

#endif  // CONTENT_PUBLIC_COMMON_EXTRA_MOJO_JS_FEATURES_MOJOM_SEND_VALIDATION_H_