// components/surface_embed/common/surface_embed.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 COMPONENTS_SURFACE_EMBED_COMMON_SURFACE_EMBED_MOJOM_SEND_VALIDATION_H_
#define COMPONENTS_SURFACE_EMBED_COMMON_SURFACE_EMBED_MOJOM_SEND_VALIDATION_H_

#include "components/surface_embed/common/surface_embed.mojom-shared-internal.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-shared.h"
#include "services/viz/public/mojom/compositing/frame_sink_id.mojom-shared.h"
#include "services/viz/public/mojom/compositing/local_surface_id.mojom-shared.h"
#include "third_party/blink/public/mojom/frame/frame_visual_properties.mojom-shared.h"
#include "third_party/blink/public/mojom/input/focus_type.mojom-shared.h"

#include "components/surface_embed/common/surface_embed.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/interface_serialization_send_validation.h"

namespace mojo::internal {

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

      fragment->is_throttled = Traits::is_throttled(input);

      fragment->subtree_throttled = Traits::subtree_throttled(input);

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

}  // namespace mojo::internal

#endif  // COMPONENTS_SURFACE_EMBED_COMMON_SURFACE_EMBED_MOJOM_SEND_VALIDATION_H_