#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_FETCH_FETCH_API_REQUEST_MOJOM_SHARED_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_FETCH_FETCH_API_REQUEST_MOJOM_SHARED_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/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-shared-internal.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-shared.h"
#include "services/network/public/mojom/attribution.mojom-shared.h"
#include "services/network/public/mojom/ip_address_space.mojom-shared.h"
#include "services/network/public/mojom/chunked_data_pipe_getter.mojom-shared.h"
#include "services/network/public/mojom/fetch_api.mojom-shared.h"
#include "services/network/public/mojom/request_priority.mojom-shared.h"
#include "services/network/public/mojom/trust_tokens.mojom-shared.h"
#include "services/network/public/mojom/url_request.mojom-shared.h"
#include "third_party/blink/public/mojom/blob/serialized_blob.mojom-shared.h"
#include "third_party/blink/public/mojom/loader/request_context_frame_type.mojom-shared.h"
#include "third_party/blink/public/mojom/loader/referrer.mojom-shared.h"
#include "url/mojom/origin.mojom-shared.h"
#include "url/mojom/url.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "base/component_export.h"
namespace blink::mojom {
class FetchAPIRequestHeadersDataView;
class FetchAPIRequestBodyDataView;
class FetchAPIRequestDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::blink::mojom::FetchAPIRequestHeadersDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::FetchAPIRequestBodyDataView> { … };
template <>
struct MojomTypeTraits<::blink::mojom::FetchAPIRequestDataView> { … };
}
}
namespace blinkmojom
namespace std {
template <>
struct hash<::blink::mojom::RequestContextType>
: public mojo::internal::EnumHashImpl<::blink::mojom::RequestContextType> { … };
template <>
struct hash<::blink::mojom::FetchCacheMode>
: public mojo::internal::EnumHashImpl<::blink::mojom::FetchCacheMode> { … };
template <>
struct hash<::blink::mojom::FetchPriorityHint>
: public mojo::internal::EnumHashImpl<::blink::mojom::FetchPriorityHint> { … };
}
namespace mojo {
namespace internal {
Serializer< ::blink::mojom::RequestContextType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::FetchCacheMode, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::FetchPriorityHint, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::FetchAPIRequestHeadersDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::FetchAPIRequestBodyDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::blink::mojom::FetchAPIRequestDataView, MaybeConstUserType>;
}
}
namespace blink::mojom {
inline void FetchAPIRequestHeadersDataView::GetHeadersDataView(
mojo::MapDataView<mojo::StringDataView, mojo::StringDataView>* output) { … }
inline void FetchAPIRequestBodyDataView::GetElementsDataView(
mojo::ArrayDataView<::network::mojom::DataElementDataView>* output) { … }
inline void FetchAPIRequestDataView::GetUrlDataView(
::url::mojom::UrlDataView* output) { … }
inline void FetchAPIRequestDataView::GetMethodDataView(
mojo::StringDataView* output) { … }
inline void FetchAPIRequestDataView::GetHeadersDataView(
FetchAPIRequestHeadersDataView* output) { … }
inline void FetchAPIRequestDataView::GetBlobDataView(
::blink::mojom::SerializedBlobDataView* output) { … }
inline void FetchAPIRequestDataView::GetBodyDataView(
FetchAPIRequestBodyDataView* output) { … }
inline void FetchAPIRequestDataView::GetRequestInitiatorDataView(
::url::mojom::OriginDataView* output) { … }
inline void FetchAPIRequestDataView::GetNavigationRedirectChainDataView(
mojo::ArrayDataView<::url::mojom::UrlDataView>* output) { … }
inline void FetchAPIRequestDataView::GetReferrerDataView(
::blink::mojom::ReferrerDataView* output) { … }
inline void FetchAPIRequestDataView::GetIntegrityDataView(
mojo::StringDataView* output) { … }
inline void FetchAPIRequestDataView::GetFetchWindowIdDataView(
::mojo_base::mojom::UnguessableTokenDataView* output) { … }
inline void FetchAPIRequestDataView::GetDevtoolsStackIdDataView(
mojo::StringDataView* output) { … }
inline void FetchAPIRequestDataView::GetTrustTokenParamsDataView(
::network::mojom::TrustTokenParamsDataView* output) { … }
inline void FetchAPIRequestDataView::GetServiceWorkerRaceNetworkRequestTokenDataView(
::mojo_base::mojom::UnguessableTokenDataView* output) { … }
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::RequestContextType> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::FetchCacheMode> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::FetchPriorityHint> { … };
}
#endif