#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.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-import-headers.h"
#include "third_party/blink/public/mojom/navigation/navigation_params.mojom-test-utils.h"
#include "net/cert/cert_verify_result.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 {
BeginNavigationParams::BeginNavigationParams()
: … { … }
BeginNavigationParams::BeginNavigationParams(
const std::optional<::blink::LocalFrameToken>& initiator_frame_token_in,
const std::string& headers_in,
int32_t load_flags_in,
bool skip_service_worker_in,
::blink::mojom::RequestContextType request_context_type_in,
::blink::mojom::MixedContentContextType mixed_content_context_type_in,
bool is_form_submission_in,
bool was_initiated_by_link_click_in,
ForceHistoryPush force_history_push_in,
const ::GURL& searchable_form_url_in,
const std::string& searchable_form_encoding_in,
const ::GURL& client_side_redirect_url_in,
std::optional<::base::Value::Dict> devtools_initiator_in,
::network::mojom::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::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 ::GURL& url_in,
const std::optional<::url::Origin>& initiator_origin_in,
const std::optional<::GURL>& initiator_base_url_in,
::blink::mojom::ReferrerPtr referrer_in,
int32_t transition_in,
NavigationType navigation_type_in,
const ::blink::NavigationDownloadPolicy& download_policy_in,
bool should_replace_current_entry_in,
const ::GURL& base_url_for_data_url_in,
::base::TimeTicks navigation_start_in,
const std::string& method_in,
::scoped_refptr<::network::ResourceRequestBody> post_data_in,
::network::mojom::SourceLocationPtr source_location_in,
bool started_from_context_menu_in,
bool has_user_gesture_in,
bool text_fragment_token_in,
::network::mojom::CSPDisposition should_check_main_world_csp_in,
std::vector<int32_t> initiator_origin_trial_features_in,
const std::string& href_translate_in,
bool is_history_navigation_in_new_child_frame_in,
::base::TimeTicks input_start_in,
::network::mojom::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::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::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 std::optional<::url::Origin>& origin_to_commit_in,
const ::blink::StorageKey& storage_key_in,
bool is_overriding_user_agent_in,
std::vector<::GURL> redirects_in,
std::vector<::network::mojom::URLResponseHeadPtr> redirect_response_in,
std::vector<::net::RedirectInfo> redirect_infos_in,
const std::string& post_content_type_in,
const ::GURL& original_url_in,
const std::string& original_method_in,
bool can_load_local_resources_in,
const std::string& page_state_in,
int32_t nav_entry_id_in,
const base::flat_map<std::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::WasActivatedOption was_activated_in,
const ::base::UnguessableToken& navigation_token_in,
std::vector<::blink::mojom::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,
std::vector<std::string> force_enabled_origin_trials_in,
bool origin_agent_cluster_in,
bool origin_agent_cluster_left_as_default_in,
std::vector<::network::mojom::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::NavigationApiHistoryEntryArraysPtr navigation_api_history_entry_arrays_in,
std::vector<::GURL> early_hints_preloaded_resources_in,
::base::TimeTicks commit_sent_in,
const std::string& srcdoc_value_in,
bool is_load_data_with_base_url_in,
bool ancestor_or_self_has_cspee_in,
const std::string& reduced_accept_language_in,
::network::mojom::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 base::flat_map<::blink::mojom::RuntimeFeature, bool>& modified_runtime_features_in,
const std::optional<::blink::FencedFrame::RedactedFencedFrameProperties>& fenced_frame_properties_in,
::blink::mojom::BackForwardCacheNotRestoredReasonsPtr not_restored_reasons_in,
::net::StorageAccessApiStatus load_with_storage_access_in,
const std::optional<::blink::BrowsingContextGroupInfo>& browsing_context_group_info_in,
::blink::mojom::LCPCriticalPathPredictorNavigationTimeHintPtr lcpp_hint_in,
::blink::mojom::RendererContentSettingsPtr content_settings_in,
const std::optional<std::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 ::GURL& 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) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::BeginNavigationParams::DataView, ::blink::mojom::BeginNavigationParamsPtr>::Read(
::blink::mojom::BeginNavigationParams::DataView input,
::blink::mojom::BeginNavigationParamsPtr* output) { … }
bool StructTraits<::blink::mojom::CommonNavigationParams::DataView, ::blink::mojom::CommonNavigationParamsPtr>::Read(
::blink::mojom::CommonNavigationParams::DataView input,
::blink::mojom::CommonNavigationParamsPtr* output) { … }
bool StructTraits<::blink::mojom::NavigationTiming::DataView, ::blink::mojom::NavigationTimingPtr>::Read(
::blink::mojom::NavigationTiming::DataView input,
::blink::mojom::NavigationTimingPtr* output) { … }
bool StructTraits<::blink::mojom::OldPageInfo::DataView, ::blink::mojom::OldPageInfoPtr>::Read(
::blink::mojom::OldPageInfo::DataView input,
::blink::mojom::OldPageInfoPtr* output) { … }
bool StructTraits<::blink::mojom::CommitNavigationParams::DataView, ::blink::mojom::CommitNavigationParamsPtr>::Read(
::blink::mojom::CommitNavigationParams::DataView input,
::blink::mojom::CommitNavigationParamsPtr* output) { … }
bool StructTraits<::blink::mojom::PageSwapEventParams::DataView, ::blink::mojom::PageSwapEventParamsPtr>::Read(
::blink::mojom::PageSwapEventParams::DataView input,
::blink::mojom::PageSwapEventParamsPtr* output) { … }
}
namespace blink::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif