// chrome/common/actor.mojom-shared-internal.h is auto generated by mojom_bindings_generator.py, do not edit

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

#ifndef CHROME_COMMON_ACTOR_MOJOM_SHARED_INTERNAL_H_
#define CHROME_COMMON_ACTOR_MOJOM_SHARED_INTERNAL_H_
#include "mojo/public/cpp/bindings/lib/array_internal.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/map_data_internal.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/message_fragment.h"
#include "mojo/public/c/system/macros.h"
#include "components/actor/public/mojom/actor_types.mojom-shared-internal.h"
#include "mojo/public/mojom/base/time.mojom-shared-internal.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-shared-internal.h"
#include "third_party/blink/public/mojom/content_extraction/ai_page_content.mojom-shared-internal.h"
#include "third_party/blink/public/mojom/content_extraction/script_tools.mojom-shared-internal.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-shared-internal.h"
#include "mojo/public/cpp/bindings/lib/native_enum_data.h"
#include "mojo/public/interfaces/bindings/native_struct.mojom-shared-internal.h"



namespace mojo {
namespace internal {
class ValidationContext;
}
}


namespace actor::mojom {
namespace internal {
class ObservedToolTarget_Data;
class ClickAction_Data;
class MouseMoveAction_Data;
class ScrollToAction_Data;
class TypeAction_Data;
class ScrollAction_Data;
class SelectAction_Data;
class DragAndReleaseAction_Data;
class ScriptToolAction_Data;
class ToolInvocation_Data;
class ScriptToolResponse_Data;
class ActionResult_Data;
class ToolTarget_Data;
class ToolAction_Data;
class InitializeToolResult_Data;

struct ClickType_Data {
 public:
  static bool constexpr kIsExtensible = false;

  static bool IsKnownValue(int32_t value) {
    switch (value) {
      case 1:
      case 2:
      case 3:
        return true;
    }
    return false;
  }

  static bool Validate(int32_t value,
                       mojo::internal::ValidationContext* validation_context) {
    if (kIsExtensible || IsKnownValue(value))
      return true;

    ReportValidationError(validation_context,
                          mojo::internal::VALIDATION_ERROR_UNKNOWN_ENUM_VALUE);
    return false;
  }
};

struct ClickCount_Data {
 public:
  static bool constexpr kIsExtensible = false;

  static bool IsKnownValue(int32_t value) {
    switch (value) {
      case 1:
      case 2:
        return true;
    }
    return false;
  }

  static bool Validate(int32_t value,
                       mojo::internal::ValidationContext* validation_context) {
    if (kIsExtensible || IsKnownValue(value))
      return true;

    ReportValidationError(validation_context,
                          mojo::internal::VALIDATION_ERROR_UNKNOWN_ENUM_VALUE);
    return false;
  }
};

struct ScreenshotPolicy_Data {
 public:
  static bool constexpr kIsExtensible = false;

  static bool IsKnownValue(int32_t value) {
    switch (value) {
      case 0:
      case 1:
      case 2:
        return true;
    }
    return false;
  }

  static bool Validate(int32_t value,
                       mojo::internal::ValidationContext* validation_context) {
    if (kIsExtensible || IsKnownValue(value))
      return true;

    ReportValidationError(validation_context,
                          mojo::internal::VALIDATION_ERROR_UNKNOWN_ENUM_VALUE);
    return false;
  }
};

struct PageContentExtractionPolicy_Data {
 public:
  static bool constexpr kIsExtensible = false;

  static bool IsKnownValue(int32_t value) {
    switch (value) {
      case 0:
      case 1:
      case 2:
        return true;
    }
    return false;
  }

  static bool Validate(int32_t value,
                       mojo::internal::ValidationContext* validation_context) {
    if (kIsExtensible || IsKnownValue(value))
      return true;

    ReportValidationError(validation_context,
                          mojo::internal::VALIDATION_ERROR_UNKNOWN_ENUM_VALUE);
    return false;
  }
};

struct AttemptLoginStatus_Data {
 public:
  static bool constexpr kIsExtensible = false;

  static bool IsKnownValue(int32_t value) {
    switch (value) {
      case 0:
      case 1:
        return true;
    }
    return false;
  }

  static bool Validate(int32_t value,
                       mojo::internal::ValidationContext* validation_context) {
    if (kIsExtensible || IsKnownValue(value))
      return true;

    ReportValidationError(validation_context,
                          mojo::internal::VALIDATION_ERROR_UNKNOWN_ENUM_VALUE);
    return false;
  }
};

struct TypeAction_Mode_Data {
 public:
  static bool constexpr kIsExtensible = false;

  static bool IsKnownValue(int32_t value) {
    switch (value) {
      case 0:
      case 1:
      case 2:
        return true;
    }
    return false;
  }

  static bool Validate(int32_t value,
                       mojo::internal::ValidationContext* validation_context) {
    if (kIsExtensible || IsKnownValue(value))
      return true;

    ReportValidationError(validation_context,
                          mojo::internal::VALIDATION_ERROR_UNKNOWN_ENUM_VALUE);
    return false;
  }
};

struct ScrollAction_ScrollDirection_Data {
 public:
  static bool constexpr kIsExtensible = false;

  static bool IsKnownValue(int32_t value) {
    switch (value) {
      case 1:
      case 2:
      case 3:
      case 4:
        return true;
    }
    return false;
  }

  static bool Validate(int32_t value,
                       mojo::internal::ValidationContext* validation_context) {
    if (kIsExtensible || IsKnownValue(value))
      return true;

    ReportValidationError(validation_context,
                          mojo::internal::VALIDATION_ERROR_UNKNOWN_ENUM_VALUE);
    return false;
  }
};

#pragma pack(push, 1)


class  ToolTarget_Data {
 public:
  // Used to identify Mojom Union Data Classes.
  typedef void MojomUnionDataType;

  ToolTarget_Data() = default;
  // Do nothing in the destructor since it won't be called when it is a
  // non-inlined union.
  ~ToolTarget_Data() = default;

  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context,
                       bool inlined);

  bool is_null() const { return size == 0; }

  void set_null() {
    size = 0U;
    tag = static_cast<ToolTarget_Tag>(0);
    data.unknown = 0U;
  }

  // TODO(crbug.com/40731316): SHOUTY_CASE values are being deprecated per C++ code style
  // guidelines (https://google.github.io/styleguide/cppguide.html#Enumerator_Names),
  // please use kCamelCase values instead.  Cleanup NULL_VALUE, BOOL_VALUE, INT_VALUE, etc.
  // generation once codebase is transitioned to kNullValue, kBoolValue, kIntValue, etc.
  enum class ToolTarget_Tag : uint32_t {

    
    kDomNodeId,
    
    kCoordinateDip,
  };

  // A note on layout:
  // "Each non-static data member is allocated as if it were the sole member of
  // a struct." - Section 9.5.2 ISO/IEC 14882:2011 (The C++ Spec)
  union MOJO_ALIGNAS(8) Union_ {
    Union_() : unknown(0) {}
    int32_t f_dom_node_id;
    mojo::internal::Pointer<::gfx::mojom::internal::Point_Data> f_coordinate_dip;
    uint64_t unknown;
  };

  uint32_t size;
  ToolTarget_Tag tag;
  Union_ data;
};
static_assert(sizeof(ToolTarget_Data) == mojo::internal::kUnionDataSize,
              "Bad sizeof(ToolTarget_Data)");


class  ToolAction_Data {
 public:
  // Used to identify Mojom Union Data Classes.
  typedef void MojomUnionDataType;

  ToolAction_Data() = default;
  // Do nothing in the destructor since it won't be called when it is a
  // non-inlined union.
  ~ToolAction_Data() = default;

  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context,
                       bool inlined);

  bool is_null() const { return size == 0; }

  void set_null() {
    size = 0U;
    tag = static_cast<ToolAction_Tag>(0);
    data.unknown = 0U;
  }

  // TODO(crbug.com/40731316): SHOUTY_CASE values are being deprecated per C++ code style
  // guidelines (https://google.github.io/styleguide/cppguide.html#Enumerator_Names),
  // please use kCamelCase values instead.  Cleanup NULL_VALUE, BOOL_VALUE, INT_VALUE, etc.
  // generation once codebase is transitioned to kNullValue, kBoolValue, kIntValue, etc.
  enum class ToolAction_Tag : uint32_t {

    
    kClick,
    
    kDragAndRelease,
    
    kMouseMove,
    
    kScroll,
    
    kSelect,
    
    kType,
    
    kScriptTool,
    
    kScrollTo,
  };

  // A note on layout:
  // "Each non-static data member is allocated as if it were the sole member of
  // a struct." - Section 9.5.2 ISO/IEC 14882:2011 (The C++ Spec)
  union MOJO_ALIGNAS(8) Union_ {
    Union_() : unknown(0) {}
    mojo::internal::Pointer<internal::ClickAction_Data> f_click;
    mojo::internal::Pointer<internal::DragAndReleaseAction_Data> f_drag_and_release;
    mojo::internal::Pointer<internal::MouseMoveAction_Data> f_mouse_move;
    mojo::internal::Pointer<internal::ScrollAction_Data> f_scroll;
    mojo::internal::Pointer<internal::SelectAction_Data> f_select;
    mojo::internal::Pointer<internal::TypeAction_Data> f_type;
    mojo::internal::Pointer<internal::ScriptToolAction_Data> f_script_tool;
    mojo::internal::Pointer<internal::ScrollToAction_Data> f_scroll_to;
    uint64_t unknown;
  };

  uint32_t size;
  ToolAction_Tag tag;
  Union_ data;
};
static_assert(sizeof(ToolAction_Data) == mojo::internal::kUnionDataSize,
              "Bad sizeof(ToolAction_Data)");


class  InitializeToolResult_Data {
 public:
  // Used to identify Mojom Union Data Classes.
  typedef void MojomUnionDataType;

  InitializeToolResult_Data() = default;
  // Do nothing in the destructor since it won't be called when it is a
  // non-inlined union.
  ~InitializeToolResult_Data() = default;

  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context,
                       bool inlined);

  bool is_null() const { return size == 0; }

  void set_null() {
    size = 0U;
    tag = static_cast<InitializeToolResult_Tag>(0);
    data.unknown = 0U;
  }

  // TODO(crbug.com/40731316): SHOUTY_CASE values are being deprecated per C++ code style
  // guidelines (https://google.github.io/styleguide/cppguide.html#Enumerator_Names),
  // please use kCamelCase values instead.  Cleanup NULL_VALUE, BOOL_VALUE, INT_VALUE, etc.
  // generation once codebase is transitioned to kNullValue, kBoolValue, kIntValue, etc.
  enum class InitializeToolResult_Tag : uint32_t {

    
    kSuccessPoint,
    
    kErrorResult,
  };

  // A note on layout:
  // "Each non-static data member is allocated as if it were the sole member of
  // a struct." - Section 9.5.2 ISO/IEC 14882:2011 (The C++ Spec)
  union MOJO_ALIGNAS(8) Union_ {
    Union_() : unknown(0) {}
    mojo::internal::Pointer<::gfx::mojom::internal::Point_Data> f_success_point;
    mojo::internal::Pointer<internal::ActionResult_Data> f_error_result;
    uint64_t unknown;
  };

  uint32_t size;
  InitializeToolResult_Tag tag;
  Union_ data;
};
static_assert(sizeof(InitializeToolResult_Data) == mojo::internal::kUnionDataSize,
              "Bad sizeof(InitializeToolResult_Data)");
class  ObservedToolTarget_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  mojo::internal::Pointer<::blink::mojom::internal::AIPageContentAttributes_Data> node_attribute;

 private:
  friend class mojo::internal::MessageFragment<ObservedToolTarget_Data>;

  ObservedToolTarget_Data();
  ~ObservedToolTarget_Data() = delete;
};
static_assert(sizeof(ObservedToolTarget_Data) == 16,
              "Bad sizeof(ObservedToolTarget_Data)");
// Used by ObservedToolTarget::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ObservedToolTarget_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ObservedToolTarget_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ObservedToolTarget_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ObservedToolTarget_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ObservedToolTarget_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  ClickAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  int32_t type;
  int32_t count;

 private:
  friend class mojo::internal::MessageFragment<ClickAction_Data>;

  ClickAction_Data();
  ~ClickAction_Data() = delete;
};
static_assert(sizeof(ClickAction_Data) == 16,
              "Bad sizeof(ClickAction_Data)");
// Used by ClickAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ClickAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ClickAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ClickAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ClickAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ClickAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  MouseMoveAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;

 private:
  friend class mojo::internal::MessageFragment<MouseMoveAction_Data>;

  MouseMoveAction_Data();
  ~MouseMoveAction_Data() = delete;
};
static_assert(sizeof(MouseMoveAction_Data) == 8,
              "Bad sizeof(MouseMoveAction_Data)");
// Used by MouseMoveAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct MouseMoveAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  MouseMoveAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~MouseMoveAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<MouseMoveAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    MouseMoveAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  ScrollToAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;

 private:
  friend class mojo::internal::MessageFragment<ScrollToAction_Data>;

  ScrollToAction_Data();
  ~ScrollToAction_Data() = delete;
};
static_assert(sizeof(ScrollToAction_Data) == 8,
              "Bad sizeof(ScrollToAction_Data)");
// Used by ScrollToAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ScrollToAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ScrollToAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ScrollToAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ScrollToAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ScrollToAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  TypeAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  int32_t mode;
  uint8_t follow_by_enter : 1;
  uint8_t pad1_[3];
  mojo::internal::Pointer<mojo::internal::String_Data> text;

 private:
  friend class mojo::internal::MessageFragment<TypeAction_Data>;

  TypeAction_Data();
  ~TypeAction_Data() = delete;
};
static_assert(sizeof(TypeAction_Data) == 24,
              "Bad sizeof(TypeAction_Data)");
// Used by TypeAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct TypeAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  TypeAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~TypeAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<TypeAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    TypeAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  ScrollAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  int32_t direction;
  float distance;

 private:
  friend class mojo::internal::MessageFragment<ScrollAction_Data>;

  ScrollAction_Data();
  ~ScrollAction_Data() = delete;
};
static_assert(sizeof(ScrollAction_Data) == 16,
              "Bad sizeof(ScrollAction_Data)");
// Used by ScrollAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ScrollAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ScrollAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ScrollAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ScrollAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ScrollAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  SelectAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  mojo::internal::Pointer<mojo::internal::String_Data> value;

 private:
  friend class mojo::internal::MessageFragment<SelectAction_Data>;

  SelectAction_Data();
  ~SelectAction_Data() = delete;
};
static_assert(sizeof(SelectAction_Data) == 16,
              "Bad sizeof(SelectAction_Data)");
// Used by SelectAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct SelectAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  SelectAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~SelectAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<SelectAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    SelectAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  DragAndReleaseAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  internal::ToolTarget_Data to_target;

 private:
  friend class mojo::internal::MessageFragment<DragAndReleaseAction_Data>;

  DragAndReleaseAction_Data();
  ~DragAndReleaseAction_Data() = delete;
};
static_assert(sizeof(DragAndReleaseAction_Data) == 24,
              "Bad sizeof(DragAndReleaseAction_Data)");
// Used by DragAndReleaseAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct DragAndReleaseAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  DragAndReleaseAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~DragAndReleaseAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<DragAndReleaseAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    DragAndReleaseAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  ScriptToolAction_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  mojo::internal::Pointer<mojo::internal::String_Data> name;
  mojo::internal::Pointer<mojo::internal::String_Data> input_arguments;

 private:
  friend class mojo::internal::MessageFragment<ScriptToolAction_Data>;

  ScriptToolAction_Data();
  ~ScriptToolAction_Data() = delete;
};
static_assert(sizeof(ScriptToolAction_Data) == 24,
              "Bad sizeof(ScriptToolAction_Data)");
// Used by ScriptToolAction::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ScriptToolAction_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ScriptToolAction_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ScriptToolAction_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ScriptToolAction_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ScriptToolAction_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  ToolInvocation_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  mojo::internal::Pointer<::actor::mojom::internal::TaskId_Data> task_id;
  mojo::internal::Pointer<::mojo_base::mojom::internal::UnguessableToken_Data> execution_id;
  internal::ToolAction_Data action;
  internal::ToolTarget_Data target;
  mojo::internal::Pointer<internal::ObservedToolTarget_Data> observed_target;

 private:
  friend class mojo::internal::MessageFragment<ToolInvocation_Data>;

  ToolInvocation_Data();
  ~ToolInvocation_Data() = delete;
};
static_assert(sizeof(ToolInvocation_Data) == 64,
              "Bad sizeof(ToolInvocation_Data)");
// Used by ToolInvocation::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ToolInvocation_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ToolInvocation_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ToolInvocation_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ToolInvocation_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ToolInvocation_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  ScriptToolResponse_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  mojo::internal::Pointer<mojo::internal::String_Data> input_arguments;
  mojo::internal::Pointer<::blink::mojom::internal::ScriptTool_Data> tool;
  mojo::internal::Pointer<mojo::internal::String_Data> result;

 private:
  friend class mojo::internal::MessageFragment<ScriptToolResponse_Data>;

  ScriptToolResponse_Data();
  ~ScriptToolResponse_Data() = delete;
};
static_assert(sizeof(ScriptToolResponse_Data) == 32,
              "Bad sizeof(ScriptToolResponse_Data)");
// Used by ScriptToolResponse::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ScriptToolResponse_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ScriptToolResponse_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ScriptToolResponse_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ScriptToolResponse_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ScriptToolResponse_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};
class  ActionResult_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  int32_t code;
  uint8_t requires_page_stabilization : 1;
  uint8_t attempt_login_status_$flag : 1;
  uint8_t pad2_[3];
  mojo::internal::Pointer<mojo::internal::String_Data> message;
  mojo::internal::Pointer<internal::ScriptToolResponse_Data> script_tool_response;
  mojo::internal::Pointer<::mojo_base::mojom::internal::TimeTicks_Data> execution_end_time;
  int32_t screenshot_policy;
  int32_t page_content_policy;
  int32_t attempt_login_status_$value;
  uint8_t padfinal_[4];

 private:
  friend class mojo::internal::MessageFragment<ActionResult_Data>;

  ActionResult_Data();
  ~ActionResult_Data() = delete;
};
static_assert(sizeof(ActionResult_Data) == 56,
              "Bad sizeof(ActionResult_Data)");
// Used by ActionResult::WrapAsMessage to lazily serialize the struct.
template <typename UserType, typename DataView>
struct ActionResult_UnserializedMessageContext
    : public mojo::internal::UnserializedMessageContext {
 public:
  static const mojo::internal::UnserializedMessageContext::Tag kMessageTag;

  ActionResult_UnserializedMessageContext(
    uint32_t message_name,
    uint32_t message_flags,
    UserType input)
      : mojo::internal::UnserializedMessageContext(&kMessageTag, message_name, message_flags)
      , user_data_(std::move(input)) {}
  ~ActionResult_UnserializedMessageContext() override = default;

  UserType TakeData() {
    return std::move(user_data_);
  }

 private:
  // mojo::internal::UnserializedMessageContext:
  void Serialize(mojo::Message& message) override {
    mojo::internal::MessageFragment<ActionResult_Data> fragment(message);
    mojo::internal::Serialize<DataView>(user_data_, fragment);
  }

  UserType user_data_;
};

template <typename UserType, typename DataView>
const mojo::internal::UnserializedMessageContext::Tag
    ActionResult_UnserializedMessageContext<UserType, DataView>::kMessageTag = {};

#pragma pack(pop)

}  // namespace internal

}  // actor::mojom

#endif  // CHROME_COMMON_ACTOR_MOJOM_SHARED_INTERNAL_H_