#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-params-data.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-import-headers.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-test-utils.h"
#include "services/network/public/mojom/cookie_access_observer.mojom.h"
#include "services/network/public/mojom/devtools_observer.mojom.h"
#include "services/network/public/mojom/trust_token_access_observer.mojom.h"
namespace blink::mojom {
FetchAPIRequestHeaders::FetchAPIRequestHeaders()
: … { … }
FetchAPIRequestHeaders::FetchAPIRequestHeaders(
const base::flat_map<std::string, std::string>& headers_in)
: … { … }
FetchAPIRequestHeaders::~FetchAPIRequestHeaders() = default;
void FetchAPIRequestHeaders::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FetchAPIRequestHeaders::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FetchAPIRequestBody::FetchAPIRequestBody()
: … { … }
FetchAPIRequestBody::FetchAPIRequestBody(
std::vector<::network::DataElement> elements_in,
uint64_t identifier_in,
bool contains_sensitive_info_in)
: … { … }
FetchAPIRequestBody::~FetchAPIRequestBody() = default;
void FetchAPIRequestBody::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FetchAPIRequestBody::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FetchAPIRequest::FetchAPIRequest()
: … { … }
FetchAPIRequest::FetchAPIRequest(
::network::mojom::RequestMode mode_in,
bool is_main_resource_load_in,
::network::mojom::RequestDestination destination_in,
::blink::mojom::RequestContextFrameType frame_type_in,
const ::GURL& url_in,
const std::string& method_in,
::blink::FetchAPIRequestHeadersMap headers_in,
::blink::mojom::SerializedBlobPtr blob_in,
::scoped_refptr<::network::ResourceRequestBody> body_in,
const std::optional<::url::Origin>& request_initiator_in,
std::vector<::GURL> navigation_redirect_chain_in,
::blink::mojom::ReferrerPtr referrer_in,
::network::mojom::CredentialsMode credentials_mode_in,
FetchCacheMode cache_mode_in,
::network::mojom::RedirectMode redirect_mode_in,
const std::optional<std::string>& integrity_in,
::net::RequestPriority priority_in,
const std::optional<::base::UnguessableToken>& fetch_window_id_in,
bool keepalive_in,
bool is_reload_in,
bool is_history_navigation_in,
const std::optional<std::string>& devtools_stack_id_in,
::network::mojom::TrustTokenParamsPtr trust_token_params_in,
::network::mojom::IPAddressSpace target_address_space_in,
::network::mojom::AttributionReportingEligibility attribution_reporting_eligibility_in,
::network::mojom::AttributionSupport attribution_reporting_support_in,
const std::optional<::base::UnguessableToken>& service_worker_race_network_request_token_in)
: … { … }
FetchAPIRequest::~FetchAPIRequest() = default;
void FetchAPIRequest::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FetchAPIRequest::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::FetchAPIRequestHeaders::DataView, ::blink::mojom::FetchAPIRequestHeadersPtr>::Read(
::blink::mojom::FetchAPIRequestHeaders::DataView input,
::blink::mojom::FetchAPIRequestHeadersPtr* output) { … }
bool StructTraits<::blink::mojom::FetchAPIRequestBody::DataView, ::blink::mojom::FetchAPIRequestBodyPtr>::Read(
::blink::mojom::FetchAPIRequestBody::DataView input,
::blink::mojom::FetchAPIRequestBodyPtr* output) { … }
bool StructTraits<::blink::mojom::FetchAPIRequest::DataView, ::blink::mojom::FetchAPIRequestPtr>::Read(
::blink::mojom::FetchAPIRequest::DataView input,
::blink::mojom::FetchAPIRequestPtr* output) { … }
}
namespace blink::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif