// services/network/public/mojom/proxy_resolving_socket.mojom-data-view.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.

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef SERVICES_NETWORK_PUBLIC_MOJOM_PROXY_RESOLVING_SOCKET_MOJOM_DATA_VIEW_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_PROXY_RESOLVING_SOCKET_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"

#include "services/network/public/mojom/proxy_resolving_socket.mojom-shared-internal.h"
#include "services/network/public/mojom/ip_endpoint.mojom-shared.h"
#include "services/network/public/mojom/mutable_network_traffic_annotation_tag.mojom-shared.h"
#include "services/network/public/mojom/network_anonymization_key.mojom-shared.h"
#include "services/network/public/mojom/network_param.mojom-shared.h"
#include "services/network/public/mojom/ssl_config.mojom-shared.h"
#include "services/network/public/mojom/tcp_socket.mojom-shared.h"
#include "services/network/public/mojom/tls_socket.mojom-shared.h"
#include "url/mojom/url.mojom-shared.h"


namespace network::mojom {
class ProxyResolvingSocketOptionsDataView;



}  // network::mojom


namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::network::mojom::ProxyResolvingSocketOptionsDataView> {
  using Data = ::network::mojom::internal::ProxyResolvingSocketOptions_Data;
  using DataAsArrayElement = Pointer<Data>;
  static constexpr MojomTypeCategory category = MojomTypeCategory::kStruct;
};

}  // namespace internal
}  // namespace mojo


namespace network::mojom {
// Interface base classes. They are used for type safety check.
class ProxyResolvingSocketInterfaceBase {};

using ProxyResolvingSocketPtrDataView =
    mojo::InterfacePtrDataView<ProxyResolvingSocketInterfaceBase>;
using ProxyResolvingSocketRequestDataView =
    mojo::InterfaceRequestDataView<ProxyResolvingSocketInterfaceBase>;
using ProxyResolvingSocketAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<ProxyResolvingSocketInterfaceBase>;
using ProxyResolvingSocketAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<ProxyResolvingSocketInterfaceBase>;
class ProxyResolvingSocketFactoryInterfaceBase {};

using ProxyResolvingSocketFactoryPtrDataView =
    mojo::InterfacePtrDataView<ProxyResolvingSocketFactoryInterfaceBase>;
using ProxyResolvingSocketFactoryRequestDataView =
    mojo::InterfaceRequestDataView<ProxyResolvingSocketFactoryInterfaceBase>;
using ProxyResolvingSocketFactoryAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<ProxyResolvingSocketFactoryInterfaceBase>;
using ProxyResolvingSocketFactoryAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<ProxyResolvingSocketFactoryInterfaceBase>;


class ProxyResolvingSocketOptionsDataView {
 public:
  ProxyResolvingSocketOptionsDataView() = default;

  ProxyResolvingSocketOptionsDataView(
      internal::ProxyResolvingSocketOptions_Data* data,
      mojo::Message* message)
      : data_(data) {}

  bool is_null() const { return !data_; }
  bool use_tls() const {
    return data_->use_tls;
  }
 private:
  internal::ProxyResolvingSocketOptions_Data* data_ = nullptr;
};


}  // network::mojom

#endif  // SERVICES_NETWORK_PUBLIC_MOJOM_PROXY_RESOLVING_SOCKET_MOJOM_DATA_VIEW_H_