chromium/out/Default/gen/services/network/public/mojom/url_response_head.mojom.cc

// services/network/public/mojom/url_response_head.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

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

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "services/network/public/mojom/url_response_head.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 "services/network/public/mojom/url_response_head.mojom-params-data.h"
#include "services/network/public/mojom/url_response_head.mojom-shared-message-ids.h"

#include "services/network/public/mojom/url_response_head.mojom-import-headers.h"
#include "services/network/public/mojom/url_response_head.mojom-test-utils.h"
#include "net/cert/cert_verify_result.h"


namespace network::mojom {
URLResponseHead::URLResponseHead()
    :{}

URLResponseHead::URLResponseHead(
    ::base::Time request_time_in,
    ::base::Time response_time_in,
    const ::scoped_refptr<::net::HttpResponseHeaders>& headers_in,
    const std::string& mime_type_in,
    const std::string& charset_in,
    int64_t content_length_in,
    int64_t encoded_data_length_in,
    ::network::mojom::EncodedBodyLengthPtr encoded_body_length_in,
    bool network_accessed_in,
    const ::net::LoadTimingInfo& load_timing_in,
    bool emitted_extra_info_in,
    bool was_fetched_via_spdy_in,
    bool was_alpn_negotiated_in,
    bool was_alternate_protocol_available_in,
    ::net::HttpConnectionInfo connection_info_in,
    const std::string& alpn_negotiated_protocol_in,
    ::net::AlternateProtocolUsage alternate_protocol_usage_in,
    const ::net::IPEndPoint& remote_endpoint_in,
    ::network::mojom::IPAddressSpace client_address_space_in,
    ::network::mojom::IPAddressSpace response_address_space_in,
    bool is_validated_in,
    bool was_fetched_via_cache_in,
    NavigationDeliveryType navigation_delivery_type_in,
    const ::net::ProxyChain& proxy_chain_in,
    bool was_fetched_via_service_worker_in,
    ::network::mojom::FetchResponseSource service_worker_response_source_in,
    std::vector<::GURL> url_list_via_service_worker_in,
    ::network::mojom::ServiceWorkerRouterInfoPtr service_worker_router_info_in,
    ::network::mojom::FetchResponseType response_type_in,
    int64_t padding_in,
    const std::string& cache_storage_cache_name_in,
    uint32_t cert_status_in,
    const std::optional<::net::SSLInfo>& ssl_info_in,
    std::vector<::net::cookie_util::ParsedRequestCookie> request_cookies_in,
    std::vector<std::string> cors_exposed_header_names_in,
    bool did_service_worker_navigation_preload_in,
    bool async_revalidation_requested_in,
    bool did_mime_sniff_in,
    bool is_signed_exchange_inner_response_in,
    bool is_web_bundle_inner_response_in,
    bool was_in_prefetch_cache_in,
    bool is_prefetch_with_cross_site_contamination_in,
    bool was_cookie_in_request_in,
    bool intercepted_by_plugin_in,
    bool has_range_requested_in,
    bool timing_allow_passed_in,
    const std::optional<::net::AuthChallengeInfo>& auth_challenge_info_in,
    ::base::TimeTicks request_start_in,
    ::base::TimeTicks response_start_in,
    ::network::mojom::ParsedHeadersPtr parsed_headers_in,
    const std::optional<::base::UnguessableToken>& recursive_prefetch_token_in,
    std::vector<std::string> dns_aliases_in,
    bool has_authorization_covered_by_wildcard_on_preflight_in,
    bool request_include_credentials_in,
    bool should_use_source_hash_for_js_code_cache_in,
    ::network::mojom::PrivateNetworkAccessPreflightResult private_network_access_preflight_result_in,
    bool did_use_shared_dictionary_in,
    bool load_with_storage_access_in)
    :{}

URLResponseHead::~URLResponseHead() = default;

void URLResponseHead::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool URLResponseHead::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}


}  // network::mojom


namespace mojo {


// static
bool StructTraits<::network::mojom::URLResponseHead::DataView, ::network::mojom::URLResponseHeadPtr>::Read(
    ::network::mojom::URLResponseHead::DataView input,
    ::network::mojom::URLResponseHeadPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace network::mojom {




}  // network::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif