// third_party/blink/public/mojom/renderer_preferences.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 THIRD_PARTY_BLINK_PUBLIC_MOJOM_RENDERER_PREFERENCES_MOJOM_SHARED_INTERNAL_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_RENDERER_PREFERENCES_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/message_fragment.h"
#include "mojo/public/mojom/base/string16.mojom-shared-internal.h"
#include "mojo/public/mojom/base/time.mojom-shared-internal.h"
#include "third_party/blink/public/mojom/peerconnection/webrtc_ip_handling_policy.mojom-shared-internal.h"
#include "third_party/blink/public/mojom/user_agent/user_agent_metadata.mojom-shared-internal.h"
#include "ui/gfx/mojom/font_render_params.mojom-shared-internal.h"
#include "ui/events/mojom/keyboard_codes.mojom-shared-internal.h"
#include "third_party/blink/public/mojom/peerconnection/webrtc_ip_handling_url_entry.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"
#include "base/component_export.h"



namespace mojo {
namespace internal {
class ValidationContext;
}
}


namespace blink::mojom {
namespace internal {
class RendererPreferences_Data;

#pragma pack(push, 1)
class COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) RendererPreferences_Data {
 public:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);

  mojo::internal::StructHeader header_;
  uint8_t can_accept_load_drops : 1;
  uint8_t should_antialias_text : 1;
  uint8_t use_autohinter : 1;
  uint8_t use_bitmaps : 1;
  uint8_t use_subpixel_positioning : 1;
  uint8_t browser_handles_all_top_level_requests : 1;
  uint8_t use_custom_colors : 1;
  uint8_t enable_referrers : 1;
  uint8_t allow_cross_origin_auth_prompt : 1;
  uint8_t enable_do_not_track : 1;
  uint8_t enable_encrypted_media : 1;
  uint8_t webrtc_post_quantum_key_agreement_$flag : 1;
  uint8_t webrtc_post_quantum_key_agreement_$value : 1;
  uint8_t send_subresource_notification : 1;
  uint8_t plugin_fullscreen_allowed : 1;
  uint8_t caret_browsing_enabled : 1;
  uint16_t webrtc_udp_min_port;
  int32_t hinting;
  int32_t subpixel_rendering;
  uint32_t focus_ring_color;
  uint32_t active_selection_bg_color;
  uint32_t active_selection_fg_color;
  uint32_t inactive_selection_bg_color;
  uint32_t inactive_selection_fg_color;
  mojo::internal::Pointer<::mojo_base::mojom::internal::TimeDelta_Data> caret_blink_interval;
  int32_t webrtc_ip_handling_policy;
  uint16_t webrtc_udp_max_port;
  uint8_t uses_platform_autofill : 1;
  uint8_t view_source_line_wrap_enabled : 1;
  uint8_t system_color_chooser_is_modal : 1;
  uint8_t is_global_privacy_control_setting_enabled : 1;
  uint8_t pad30_[1];
  mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<::blink::mojom::internal::WebRtcIpHandlingUrlEntry_Data>>> webrtc_ip_handling_urls;
  mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<mojo::internal::String_Data>>> webrtc_local_ips_allowed_urls;
  mojo::internal::Pointer<::blink::mojom::internal::UserAgentOverride_Data> user_agent_override;
  mojo::internal::Pointer<mojo::internal::String_Data> accept_languages;
  mojo::internal::Pointer<::mojo_base::mojom::internal::String16_Data> autofill_trigger_string;
  int32_t autofill_shortcut_key_code;
  int32_t autofill_shortcut_modifiers;
  mojo::internal::Pointer<mojo::internal::Array_Data<uint16_t>> explicitly_allowed_network_ports;

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

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

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

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

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

  UserType user_data_;
};

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

#pragma pack(pop)

}  // namespace internal

}  // blink::mojom

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_RENDERER_PREFERENCES_MOJOM_SHARED_INTERNAL_H_