#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/page_state/page_state.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/page_state/page_state.mojom-params-data.h"
#include "third_party/blink/public/mojom/page_state/page_state.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/page_state/page_state.mojom-import-headers.h"
#include "third_party/blink/public/mojom/page_state/page_state.mojom-test-utils.h"
namespace blink::mojom {
DEPRECATED_FileSystemFile::DEPRECATED_FileSystemFile()
: … { … }
DEPRECATED_FileSystemFile::DEPRECATED_FileSystemFile(
const ::GURL& filesystem_url_in,
uint64_t offset_in,
uint64_t length_in,
::base::Time modification_time_in)
: … { … }
DEPRECATED_FileSystemFile::~DEPRECATED_FileSystemFile() = default;
void DEPRECATED_FileSystemFile::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DEPRECATED_FileSystemFile::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
File::File()
: … { … }
File::File(
const ::std::u16string& path_in,
uint64_t offset_in,
uint64_t length_in,
::base::Time modification_time_in)
: … { … }
File::~File() = default;
void File::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool File::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RequestBody::RequestBody()
: … { … }
RequestBody::RequestBody(
std::vector<ElementPtr> elements_in,
int64_t identifier_in,
bool contains_sensitive_info_in)
: … { … }
RequestBody::~RequestBody() = default;
void RequestBody::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RequestBody::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HttpBody::HttpBody()
: … { … }
HttpBody::HttpBody(
const std::optional<::std::u16string>& http_content_type_in,
RequestBodyPtr request_body_in,
bool contains_passwords_in)
: … { … }
HttpBody::~HttpBody() = default;
void HttpBody::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool HttpBody::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ViewState::ViewState()
: … { … }
ViewState::ViewState(
const ::gfx::PointF& visual_viewport_scroll_offset_in,
const ::gfx::Point& scroll_offset_in,
double page_scale_factor_in)
: … { … }
ViewState::ViewState(
const ::gfx::PointF& visual_viewport_scroll_offset_in,
const ::gfx::Point& scroll_offset_in,
double page_scale_factor_in,
const std::optional<::std::u16string>& scroll_anchor_selector_in,
const std::optional<::gfx::PointF>& scroll_anchor_offset_in,
uint64_t scroll_anchor_simhash_in)
: … { … }
ViewState::~ViewState() = default;
void ViewState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ViewState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameState::FrameState()
: … { … }
FrameState::FrameState(
const std::optional<::std::u16string>& url_string_in,
const std::optional<::std::u16string>& referrer_in,
const std::optional<::std::u16string>& target_in,
const std::optional<::std::u16string>& state_object_in,
std::vector<std::optional<::std::u16string>> document_state_in,
ScrollRestorationType scroll_restoration_type_in,
ViewStatePtr view_state_in,
int64_t item_sequence_number_in,
int64_t document_sequence_number_in,
::network::mojom::ReferrerPolicy referrer_policy_in,
HttpBodyPtr http_body_in,
std::vector<FrameStatePtr> children_in)
: … { … }
FrameState::FrameState(
const std::optional<::std::u16string>& url_string_in,
const std::optional<::std::u16string>& referrer_in,
const std::optional<::std::u16string>& target_in,
const std::optional<::std::u16string>& state_object_in,
std::vector<std::optional<::std::u16string>> document_state_in,
ScrollRestorationType scroll_restoration_type_in,
ViewStatePtr view_state_in,
int64_t item_sequence_number_in,
int64_t document_sequence_number_in,
::network::mojom::ReferrerPolicy referrer_policy_in,
HttpBodyPtr http_body_in,
std::vector<FrameStatePtr> children_in,
const std::optional<std::string>& initiator_origin_in)
: … { … }
FrameState::FrameState(
const std::optional<::std::u16string>& url_string_in,
const std::optional<::std::u16string>& referrer_in,
const std::optional<::std::u16string>& target_in,
const std::optional<::std::u16string>& state_object_in,
std::vector<std::optional<::std::u16string>> document_state_in,
ScrollRestorationType scroll_restoration_type_in,
ViewStatePtr view_state_in,
int64_t item_sequence_number_in,
int64_t document_sequence_number_in,
::network::mojom::ReferrerPolicy referrer_policy_in,
HttpBodyPtr http_body_in,
std::vector<FrameStatePtr> children_in,
const std::optional<std::string>& initiator_origin_in,
const std::optional<::std::u16string>& navigation_api_key_in,
const std::optional<::std::u16string>& navigation_api_id_in)
: … { … }
FrameState::FrameState(
const std::optional<::std::u16string>& url_string_in,
const std::optional<::std::u16string>& referrer_in,
const std::optional<::std::u16string>& target_in,
const std::optional<::std::u16string>& state_object_in,
std::vector<std::optional<::std::u16string>> document_state_in,
ScrollRestorationType scroll_restoration_type_in,
ViewStatePtr view_state_in,
int64_t item_sequence_number_in,
int64_t document_sequence_number_in,
::network::mojom::ReferrerPolicy referrer_policy_in,
HttpBodyPtr http_body_in,
std::vector<FrameStatePtr> children_in,
const std::optional<std::string>& initiator_origin_in,
const std::optional<::std::u16string>& navigation_api_key_in,
const std::optional<::std::u16string>& navigation_api_id_in,
const std::optional<::std::u16string>& navigation_api_state_in)
: … { … }
FrameState::FrameState(
const std::optional<::std::u16string>& url_string_in,
const std::optional<::std::u16string>& referrer_in,
const std::optional<::std::u16string>& target_in,
const std::optional<::std::u16string>& state_object_in,
std::vector<std::optional<::std::u16string>> document_state_in,
ScrollRestorationType scroll_restoration_type_in,
ViewStatePtr view_state_in,
int64_t item_sequence_number_in,
int64_t document_sequence_number_in,
::network::mojom::ReferrerPolicy referrer_policy_in,
HttpBodyPtr http_body_in,
std::vector<FrameStatePtr> children_in,
const std::optional<std::string>& initiator_origin_in,
const std::optional<::std::u16string>& navigation_api_key_in,
const std::optional<::std::u16string>& navigation_api_id_in,
const std::optional<::std::u16string>& navigation_api_state_in,
bool protect_url_in_navigation_api_in)
: … { … }
FrameState::FrameState(
const std::optional<::std::u16string>& url_string_in,
const std::optional<::std::u16string>& referrer_in,
const std::optional<::std::u16string>& target_in,
const std::optional<::std::u16string>& state_object_in,
std::vector<std::optional<::std::u16string>> document_state_in,
ScrollRestorationType scroll_restoration_type_in,
ViewStatePtr view_state_in,
int64_t item_sequence_number_in,
int64_t document_sequence_number_in,
::network::mojom::ReferrerPolicy referrer_policy_in,
HttpBodyPtr http_body_in,
std::vector<FrameStatePtr> children_in,
const std::optional<std::string>& initiator_origin_in,
const std::optional<::std::u16string>& navigation_api_key_in,
const std::optional<::std::u16string>& navigation_api_id_in,
const std::optional<::std::u16string>& navigation_api_state_in,
bool protect_url_in_navigation_api_in,
const std::optional<::std::u16string>& initiator_base_url_string_in)
: … { … }
FrameState::~FrameState() = default;
void FrameState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FrameState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageState::PageState()
: … { … }
PageState::PageState(
std::vector<std::optional<::std::u16string>> referenced_files_in,
FrameStatePtr top_in)
: … { … }
PageState::~PageState() = default;
void PageState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PageState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Element::Element() : … { … }
Element::~Element() { … }
void Element::set_blob_uuid(
const std::string& blob_uuid) { … }
void Element::set_bytes(
std::vector<uint8_t> bytes) { … }
void Element::set_file(
FilePtr file) { … }
void Element::set_DEPRECATED_file_system_file(
DEPRECATED_FileSystemFilePtr DEPRECATED_file_system_file) { … }
void Element::DestroyActive() { … }
bool Element::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::DEPRECATED_FileSystemFile::DataView, ::blink::mojom::DEPRECATED_FileSystemFilePtr>::Read(
::blink::mojom::DEPRECATED_FileSystemFile::DataView input,
::blink::mojom::DEPRECATED_FileSystemFilePtr* output) { … }
bool StructTraits<::blink::mojom::File::DataView, ::blink::mojom::FilePtr>::Read(
::blink::mojom::File::DataView input,
::blink::mojom::FilePtr* output) { … }
bool StructTraits<::blink::mojom::RequestBody::DataView, ::blink::mojom::RequestBodyPtr>::Read(
::blink::mojom::RequestBody::DataView input,
::blink::mojom::RequestBodyPtr* output) { … }
bool StructTraits<::blink::mojom::HttpBody::DataView, ::blink::mojom::HttpBodyPtr>::Read(
::blink::mojom::HttpBody::DataView input,
::blink::mojom::HttpBodyPtr* output) { … }
bool StructTraits<::blink::mojom::ViewState::DataView, ::blink::mojom::ViewStatePtr>::Read(
::blink::mojom::ViewState::DataView input,
::blink::mojom::ViewStatePtr* output) { … }
bool StructTraits<::blink::mojom::FrameState::DataView, ::blink::mojom::FrameStatePtr>::Read(
::blink::mojom::FrameState::DataView input,
::blink::mojom::FrameStatePtr* output) { … }
bool StructTraits<::blink::mojom::PageState::DataView, ::blink::mojom::PageStatePtr>::Read(
::blink::mojom::PageState::DataView input,
::blink::mojom::PageStatePtr* output) { … }
bool UnionTraits<::blink::mojom::Element::DataView, ::blink::mojom::ElementPtr>::Read(
::blink::mojom::Element::DataView input,
::blink::mojom::ElementPtr* output) { … }
}
namespace blink::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif