chromium/out/Default/gen/third_party/blink/public/mojom/navigation/navigation_params.mojom-blink.cc

// third_party/blink/public/mojom/navigation/navigation_params.mojom-blink.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 "third_party/blink/public/mojom/navigation/navigation_params.mojom-blink.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/navigation/navigation_params.mojom-params-data.h"
#include "third_party/blink/public/mojom/navigation/navigation_params.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/navigation/navigation_params.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/navigation/navigation_params.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.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"
#include "third_party/blink/common/permissions_policy/permissions_policy_mojom_traits.h"
#include "third_party/blink/public/common/frame/view_transition_state_mojom_traits.h"
#include "third_party/blink/public/common/messaging/task_attribution_id_mojom_traits.h"
#include "third_party/blink/public/common/page/browsing_context_group_info_mojom_traits.h"


namespace blink::mojom::blink {
BeginNavigationParams::BeginNavigationParams()
    :{}

BeginNavigationParams::BeginNavigationParams(
    const std::optional<::blink::LocalFrameToken>& initiator_frame_token_in,
    const WTF::String& headers_in,
    int32_t load_flags_in,
    bool skip_service_worker_in,
    ::blink::mojom::blink::RequestContextType request_context_type_in,
    ::blink::mojom::blink::MixedContentContextType mixed_content_context_type_in,
    bool is_form_submission_in,
    bool was_initiated_by_link_click_in,
    ForceHistoryPush force_history_push_in,
    const ::blink::KURL& searchable_form_url_in,
    const WTF::String& searchable_form_encoding_in,
    const ::blink::KURL& client_side_redirect_url_in,
    std::optional<::base::Value::Dict> devtools_initiator_in,
    ::network::mojom::blink::TrustTokenParamsPtr trust_token_params_in,
    const std::optional<::blink::Impression>& impression_in,
    ::base::TimeTicks before_unload_start_in,
    ::base::TimeTicks before_unload_end_in,
    ::blink::mojom::blink::NavigationInitiatorActivationAndAdStatus initiator_activation_and_ad_status_in,
    bool is_container_initiated_in,
    ::net::StorageAccessApiStatus storage_access_api_status_in,
    bool has_rel_opener_in)
    :{}

BeginNavigationParams::~BeginNavigationParams() = default;

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

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

CommonNavigationParams::CommonNavigationParams(
    const ::blink::KURL& url_in,
    const ::scoped_refptr<const ::blink::SecurityOrigin>& initiator_origin_in,
    const std::optional<::blink::KURL>& initiator_base_url_in,
    ::blink::mojom::blink::ReferrerPtr referrer_in,
    int32_t transition_in,
    NavigationType navigation_type_in,
    const ::blink::NavigationDownloadPolicy& download_policy_in,
    bool should_replace_current_entry_in,
    const ::blink::KURL& base_url_for_data_url_in,
    ::base::TimeTicks navigation_start_in,
    const WTF::String& method_in,
    ::scoped_refptr<::network::ResourceRequestBody> post_data_in,
    ::network::mojom::blink::SourceLocationPtr source_location_in,
    bool started_from_context_menu_in,
    bool has_user_gesture_in,
    bool text_fragment_token_in,
    ::network::mojom::blink::CSPDisposition should_check_main_world_csp_in,
    WTF::Vector<int32_t> initiator_origin_trial_features_in,
    const WTF::String& href_translate_in,
    bool is_history_navigation_in_new_child_frame_in,
    ::base::TimeTicks input_start_in,
    ::network::mojom::blink::RequestDestination request_destination_in)
    :{}

CommonNavigationParams::~CommonNavigationParams() = default;

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

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

NavigationTiming::NavigationTiming(
    ::base::TimeTicks redirect_start_in,
    ::base::TimeTicks redirect_end_in,
    ::base::TimeTicks fetch_start_in,
    ::blink::mojom::blink::SystemEntropy system_entropy_at_navigation_start_in,
    ParentResourceTimingAccess parent_resource_timing_access_in)
    :{}

NavigationTiming::~NavigationTiming() = default;

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

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

OldPageInfo::OldPageInfo(
    const ::blink::LocalFrameToken& frame_token_for_old_main_frame_in,
    ::blink::mojom::blink::PageLifecycleStatePtr new_lifecycle_state_for_old_page_in)
    :{}

OldPageInfo::~OldPageInfo() = default;

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

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

CommitNavigationParams::CommitNavigationParams(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& origin_to_commit_in,
    const ::blink::BlinkStorageKey& storage_key_in,
    bool is_overriding_user_agent_in,
    WTF::Vector<::blink::KURL> redirects_in,
    WTF::Vector<::network::mojom::blink::URLResponseHeadPtr> redirect_response_in,
    WTF::Vector<::network::mojom::blink::URLRequestRedirectInfoPtr> redirect_infos_in,
    const WTF::String& post_content_type_in,
    const ::blink::KURL& original_url_in,
    const WTF::String& original_method_in,
    bool can_load_local_resources_in,
    const std::string& page_state_in,
    int32_t nav_entry_id_in,
    const WTF::HashMap<WTF::String, bool>& subframe_unique_names_in,
    bool intended_as_new_entry_in,
    int32_t pending_history_list_offset_in,
    int32_t current_history_list_offset_in,
    int32_t current_history_list_length_in,
    bool was_discarded_in,
    bool is_view_source_in,
    bool should_clear_history_list_in,
    NavigationTimingPtr navigation_timing_in,
    ::blink::mojom::blink::WasActivatedOption was_activated_in,
    const ::base::UnguessableToken& navigation_token_in,
    WTF::Vector<::blink::mojom::blink::PrefetchedSignedExchangeInfoPtr> prefetched_signed_exchanges_in,
    bool is_browser_initiated_in,
    bool has_ua_visual_transition_in,
    int64_t document_ukm_source_id_in,
    const ::blink::FramePolicy& frame_policy_in,
    WTF::Vector<WTF::String> force_enabled_origin_trials_in,
    bool origin_agent_cluster_in,
    bool origin_agent_cluster_left_as_default_in,
    WTF::Vector<::network::mojom::blink::WebClientHintsType> enabled_client_hints_in,
    bool is_cross_site_cross_browsing_context_group_in,
    bool should_have_sticky_user_activation_in,
    OldPageInfoPtr old_page_info_in,
    int32_t http_response_code_in,
    ::blink::mojom::blink::NavigationApiHistoryEntryArraysPtr navigation_api_history_entry_arrays_in,
    WTF::Vector<::blink::KURL> early_hints_preloaded_resources_in,
    ::base::TimeTicks commit_sent_in,
    const WTF::String& srcdoc_value_in,
    bool is_load_data_with_base_url_in,
    bool ancestor_or_self_has_cspee_in,
    const WTF::String& reduced_accept_language_in,
    ::network::mojom::blink::NavigationDeliveryType navigation_delivery_type_in,
    const std::optional<::blink::ViewTransitionState>& view_transition_state_in,
    std::optional<::blink::scheduler::TaskAttributionId> soft_navigation_heuristics_task_id_in,
    const WTF::HashMap<::blink::mojom::blink::RuntimeFeature, bool>& modified_runtime_features_in,
    const std::optional<::blink::FencedFrame::RedactedFencedFrameProperties>& fenced_frame_properties_in,
    ::blink::mojom::blink::BackForwardCacheNotRestoredReasonsPtr not_restored_reasons_in,
    ::net::StorageAccessApiStatus load_with_storage_access_in,
    const std::optional<::blink::BrowsingContextGroupInfo>& browsing_context_group_info_in,
    ::blink::mojom::blink::LCPCriticalPathPredictorNavigationTimeHintPtr lcpp_hint_in,
    ::blink::mojom::blink::RendererContentSettingsPtr content_settings_in,
    const WTF::String& cookie_deprecation_label_in,
    std::optional<uint64_t> visited_link_salt_in,
    const std::optional<::viz::LocalSurfaceId>& local_surface_id_in)
    :{}

CommitNavigationParams::~CommitNavigationParams() = default;

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

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

PageSwapEventParams::PageSwapEventParams(
    const ::blink::KURL& url_in,
    const std::string& page_state_in,
    NavigationTypeForNavigationApi navigation_type_in)
    :{}

PageSwapEventParams::~PageSwapEventParams() = default;

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

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


}  // blink::mojom::blink


namespace mojo {


// static
bool StructTraits<::blink::mojom::blink::BeginNavigationParams::DataView, ::blink::mojom::blink::BeginNavigationParamsPtr>::Read(
    ::blink::mojom::blink::BeginNavigationParams::DataView input,
    ::blink::mojom::blink::BeginNavigationParamsPtr* output) {}


// static
bool StructTraits<::blink::mojom::blink::CommonNavigationParams::DataView, ::blink::mojom::blink::CommonNavigationParamsPtr>::Read(
    ::blink::mojom::blink::CommonNavigationParams::DataView input,
    ::blink::mojom::blink::CommonNavigationParamsPtr* output) {}


// static
bool StructTraits<::blink::mojom::blink::NavigationTiming::DataView, ::blink::mojom::blink::NavigationTimingPtr>::Read(
    ::blink::mojom::blink::NavigationTiming::DataView input,
    ::blink::mojom::blink::NavigationTimingPtr* output) {}


// static
bool StructTraits<::blink::mojom::blink::OldPageInfo::DataView, ::blink::mojom::blink::OldPageInfoPtr>::Read(
    ::blink::mojom::blink::OldPageInfo::DataView input,
    ::blink::mojom::blink::OldPageInfoPtr* output) {}


// static
bool StructTraits<::blink::mojom::blink::CommitNavigationParams::DataView, ::blink::mojom::blink::CommitNavigationParamsPtr>::Read(
    ::blink::mojom::blink::CommitNavigationParams::DataView input,
    ::blink::mojom::blink::CommitNavigationParamsPtr* output) {}


// static
bool StructTraits<::blink::mojom::blink::PageSwapEventParams::DataView, ::blink::mojom::blink::PageSwapEventParamsPtr>::Read(
    ::blink::mojom::blink::PageSwapEventParams::DataView input,
    ::blink::mojom::blink::PageSwapEventParamsPtr* 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 blink::mojom::blink {




}  // blink::mojom::blink


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