#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/manifest/manifest.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/manifest/manifest.mojom-params-data.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
#include "third_party/blink/common/permissions_policy/permissions_policy_mojom_traits.h"
namespace blink::mojom::blink {
Manifest::Manifest()
: … { … }
Manifest::Manifest(
const ::blink::KURL& manifest_url_in,
const ::WTF::String& name_in,
const ::WTF::String& short_name_in,
const ::WTF::String& description_in,
const ::blink::KURL& id_in,
bool has_custom_id_in,
const ::blink::KURL& start_url_in,
bool has_valid_specified_start_url_in,
::blink::mojom::blink::DisplayMode display_in,
WTF::Vector<::blink::mojom::blink::DisplayMode> display_override_in,
::device::mojom::blink::ScreenOrientationLockType orientation_in,
WTF::Vector<ManifestImageResourcePtr> icons_in,
WTF::Vector<ManifestScreenshotPtr> screenshots_in,
WTF::Vector<ManifestShortcutItemPtr> shortcuts_in,
ManifestShareTargetPtr share_target_in,
WTF::Vector<ManifestFileHandlerPtr> file_handlers_in,
WTF::Vector<ManifestProtocolHandlerPtr> protocol_handlers_in,
WTF::Vector<ManifestUrlHandlerPtr> url_handlers_in,
WTF::Vector<ManifestScopeExtensionPtr> scope_extensions_in,
ManifestLockScreenPtr lock_screen_in,
ManifestNoteTakingPtr note_taking_in,
WTF::Vector<ManifestRelatedApplicationPtr> related_applications_in,
bool prefer_related_applications_in,
bool has_theme_color_in,
uint32_t theme_color_in,
bool has_background_color_in,
uint32_t background_color_in,
const ::WTF::String& gcm_sender_id_in,
const ::blink::KURL& scope_in,
::blink::mojom::blink::CaptureLinks capture_links_in,
WTF::Vector<::blink::ParsedPermissionsPolicyDeclaration> permissions_policy_in,
::blink::mojom::blink::ManifestLaunchHandlerPtr launch_handler_in,
WTF::HashMap<::WTF::String, ManifestTranslationItemPtr> translations_in,
bool has_dark_theme_color_in,
uint32_t dark_theme_color_in,
bool has_dark_background_color_in,
uint32_t dark_background_color_in,
ManifestTabStripPtr tab_strip_in,
const ::WTF::String& version_in)
: … { … }
Manifest::~Manifest() = default;
void Manifest::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool Manifest::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestShortcutItem::ManifestShortcutItem()
: … { … }
ManifestShortcutItem::ManifestShortcutItem(
const ::WTF::String& name_in,
const ::WTF::String& short_name_in,
const ::WTF::String& description_in,
const ::blink::KURL& url_in,
WTF::Vector<ManifestImageResourcePtr> icons_in)
: … { … }
ManifestShortcutItem::~ManifestShortcutItem() = default;
void ManifestShortcutItem::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestShortcutItem::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestImageResource::ManifestImageResource()
: … { … }
ManifestImageResource::ManifestImageResource(
const ::blink::KURL& src_in,
const ::WTF::String& type_in,
WTF::Vector<::gfx::Size> sizes_in,
WTF::Vector<ManifestImageResource::Purpose> purpose_in)
: … { … }
ManifestImageResource::~ManifestImageResource() = default;
void ManifestImageResource::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestImageResource::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestScreenshot::ManifestScreenshot()
: … { … }
ManifestScreenshot::ManifestScreenshot(
ManifestImageResourcePtr image_in,
ManifestScreenshot::FormFactor form_factor_in,
const ::WTF::String& label_in)
: … { … }
ManifestScreenshot::~ManifestScreenshot() = default;
void ManifestScreenshot::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestScreenshot::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestFileFilter::ManifestFileFilter()
: … { … }
ManifestFileFilter::ManifestFileFilter(
const ::WTF::String& name_in,
WTF::Vector<::WTF::String> accept_in)
: … { … }
ManifestFileFilter::~ManifestFileFilter() = default;
void ManifestFileFilter::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestFileFilter::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestProtocolHandler::ManifestProtocolHandler()
: … { … }
ManifestProtocolHandler::ManifestProtocolHandler(
const ::WTF::String& protocol_in,
const ::blink::KURL& url_in)
: … { … }
ManifestProtocolHandler::~ManifestProtocolHandler() = default;
void ManifestProtocolHandler::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestProtocolHandler::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestUrlHandler::ManifestUrlHandler()
: … { … }
ManifestUrlHandler::ManifestUrlHandler(
const ::scoped_refptr<const ::blink::SecurityOrigin>& origin_in,
bool has_origin_wildcard_in)
: … { … }
ManifestUrlHandler::~ManifestUrlHandler() = default;
void ManifestUrlHandler::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestUrlHandler::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestScopeExtension::ManifestScopeExtension()
: … { … }
ManifestScopeExtension::ManifestScopeExtension(
const ::scoped_refptr<const ::blink::SecurityOrigin>& origin_in,
bool has_origin_wildcard_in)
: … { … }
ManifestScopeExtension::~ManifestScopeExtension() = default;
void ManifestScopeExtension::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestScopeExtension::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestLockScreen::ManifestLockScreen()
: … { … }
ManifestLockScreen::ManifestLockScreen(
const ::blink::KURL& start_url_in)
: … { … }
ManifestLockScreen::~ManifestLockScreen() = default;
void ManifestLockScreen::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestLockScreen::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestNoteTaking::ManifestNoteTaking()
: … { … }
ManifestNoteTaking::ManifestNoteTaking(
const ::blink::KURL& new_note_url_in)
: … { … }
ManifestNoteTaking::~ManifestNoteTaking() = default;
void ManifestNoteTaking::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestNoteTaking::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestRelatedApplication::ManifestRelatedApplication()
: … { … }
ManifestRelatedApplication::ManifestRelatedApplication(
const ::WTF::String& platform_in,
const std::optional<::blink::KURL>& url_in,
const ::WTF::String& id_in)
: … { … }
ManifestRelatedApplication::~ManifestRelatedApplication() = default;
void ManifestRelatedApplication::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestRelatedApplication::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestShareTargetParams::ManifestShareTargetParams()
: … { … }
ManifestShareTargetParams::ManifestShareTargetParams(
const ::WTF::String& title_in,
const ::WTF::String& text_in,
const ::WTF::String& url_in,
std::optional<WTF::Vector<ManifestFileFilterPtr>> files_in)
: … { … }
ManifestShareTargetParams::~ManifestShareTargetParams() = default;
void ManifestShareTargetParams::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestShareTargetParams::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestShareTarget::ManifestShareTarget()
: … { … }
ManifestShareTarget::ManifestShareTarget(
const ::blink::KURL& action_in,
ManifestShareTarget::Method method_in,
ManifestShareTarget::Enctype enctype_in,
ManifestShareTargetParamsPtr params_in)
: … { … }
ManifestShareTarget::~ManifestShareTarget() = default;
void ManifestShareTarget::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestShareTarget::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestFileHandler::ManifestFileHandler()
: … { … }
ManifestFileHandler::ManifestFileHandler(
const ::blink::KURL& action_in,
const ::WTF::String& name_in,
WTF::Vector<ManifestImageResourcePtr> icons_in,
const WTF::HashMap<::WTF::String, WTF::Vector<::WTF::String>>& accept_in,
ManifestFileHandler::LaunchType launch_type_in)
: … { … }
ManifestFileHandler::~ManifestFileHandler() = default;
void ManifestFileHandler::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestFileHandler::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestTranslationItem::ManifestTranslationItem()
: … { … }
ManifestTranslationItem::ManifestTranslationItem(
const ::WTF::String& name_in,
const ::WTF::String& short_name_in,
const ::WTF::String& description_in)
: … { … }
ManifestTranslationItem::~ManifestTranslationItem() = default;
void ManifestTranslationItem::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestTranslationItem::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestTabStrip::ManifestTabStrip()
: … { … }
ManifestTabStrip::ManifestTabStrip(
HomeTabUnionPtr home_tab_in,
NewTabButtonParamsPtr new_tab_button_in)
: … { … }
ManifestTabStrip::~ManifestTabStrip() = default;
void ManifestTabStrip::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestTabStrip::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HomeTabParams::HomeTabParams()
: … { … }
HomeTabParams::HomeTabParams(
WTF::Vector<ManifestImageResourcePtr> icons_in,
WTF::Vector<::blink::SafeUrlPattern> scope_patterns_in)
: … { … }
HomeTabParams::~HomeTabParams() = default;
void HomeTabParams::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool HomeTabParams::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
NewTabButtonParams::NewTabButtonParams()
: … { … }
NewTabButtonParams::NewTabButtonParams(
const std::optional<::blink::KURL>& url_in)
: … { … }
NewTabButtonParams::~NewTabButtonParams() = default;
void NewTabButtonParams::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool NewTabButtonParams::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestDebugInfo::ManifestDebugInfo()
: … { … }
ManifestDebugInfo::ManifestDebugInfo(
WTF::Vector<ManifestErrorPtr> errors_in,
const WTF::String& raw_manifest_in)
: … { … }
ManifestDebugInfo::~ManifestDebugInfo() = default;
void ManifestDebugInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestDebugInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ManifestError::ManifestError()
: … { … }
ManifestError::ManifestError(
const WTF::String& message_in,
bool critical_in,
uint32_t line_in,
uint32_t column_in)
: … { … }
ManifestError::~ManifestError() = default;
size_t ManifestError::Hash(size_t seed) const { … }
void ManifestError::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ManifestError::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HomeTabUnion::HomeTabUnion() : … { … }
HomeTabUnion::~HomeTabUnion() { … }
void HomeTabUnion::set_visibility(
TabStripMemberVisibility visibility) { … }
void HomeTabUnion::set_params(
HomeTabParamsPtr params) { … }
void HomeTabUnion::DestroyActive() { … }
bool HomeTabUnion::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::Manifest::DataView, ::blink::mojom::blink::ManifestPtr>::Read(
::blink::mojom::blink::Manifest::DataView input,
::blink::mojom::blink::ManifestPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestShortcutItem::DataView, ::blink::mojom::blink::ManifestShortcutItemPtr>::Read(
::blink::mojom::blink::ManifestShortcutItem::DataView input,
::blink::mojom::blink::ManifestShortcutItemPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestImageResource::DataView, ::blink::mojom::blink::ManifestImageResourcePtr>::Read(
::blink::mojom::blink::ManifestImageResource::DataView input,
::blink::mojom::blink::ManifestImageResourcePtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestScreenshot::DataView, ::blink::mojom::blink::ManifestScreenshotPtr>::Read(
::blink::mojom::blink::ManifestScreenshot::DataView input,
::blink::mojom::blink::ManifestScreenshotPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestFileFilter::DataView, ::blink::mojom::blink::ManifestFileFilterPtr>::Read(
::blink::mojom::blink::ManifestFileFilter::DataView input,
::blink::mojom::blink::ManifestFileFilterPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestProtocolHandler::DataView, ::blink::mojom::blink::ManifestProtocolHandlerPtr>::Read(
::blink::mojom::blink::ManifestProtocolHandler::DataView input,
::blink::mojom::blink::ManifestProtocolHandlerPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestUrlHandler::DataView, ::blink::mojom::blink::ManifestUrlHandlerPtr>::Read(
::blink::mojom::blink::ManifestUrlHandler::DataView input,
::blink::mojom::blink::ManifestUrlHandlerPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestScopeExtension::DataView, ::blink::mojom::blink::ManifestScopeExtensionPtr>::Read(
::blink::mojom::blink::ManifestScopeExtension::DataView input,
::blink::mojom::blink::ManifestScopeExtensionPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestLockScreen::DataView, ::blink::mojom::blink::ManifestLockScreenPtr>::Read(
::blink::mojom::blink::ManifestLockScreen::DataView input,
::blink::mojom::blink::ManifestLockScreenPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestNoteTaking::DataView, ::blink::mojom::blink::ManifestNoteTakingPtr>::Read(
::blink::mojom::blink::ManifestNoteTaking::DataView input,
::blink::mojom::blink::ManifestNoteTakingPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestRelatedApplication::DataView, ::blink::mojom::blink::ManifestRelatedApplicationPtr>::Read(
::blink::mojom::blink::ManifestRelatedApplication::DataView input,
::blink::mojom::blink::ManifestRelatedApplicationPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestShareTargetParams::DataView, ::blink::mojom::blink::ManifestShareTargetParamsPtr>::Read(
::blink::mojom::blink::ManifestShareTargetParams::DataView input,
::blink::mojom::blink::ManifestShareTargetParamsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestShareTarget::DataView, ::blink::mojom::blink::ManifestShareTargetPtr>::Read(
::blink::mojom::blink::ManifestShareTarget::DataView input,
::blink::mojom::blink::ManifestShareTargetPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestFileHandler::DataView, ::blink::mojom::blink::ManifestFileHandlerPtr>::Read(
::blink::mojom::blink::ManifestFileHandler::DataView input,
::blink::mojom::blink::ManifestFileHandlerPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestTranslationItem::DataView, ::blink::mojom::blink::ManifestTranslationItemPtr>::Read(
::blink::mojom::blink::ManifestTranslationItem::DataView input,
::blink::mojom::blink::ManifestTranslationItemPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestTabStrip::DataView, ::blink::mojom::blink::ManifestTabStripPtr>::Read(
::blink::mojom::blink::ManifestTabStrip::DataView input,
::blink::mojom::blink::ManifestTabStripPtr* output) { … }
bool StructTraits<::blink::mojom::blink::HomeTabParams::DataView, ::blink::mojom::blink::HomeTabParamsPtr>::Read(
::blink::mojom::blink::HomeTabParams::DataView input,
::blink::mojom::blink::HomeTabParamsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::NewTabButtonParams::DataView, ::blink::mojom::blink::NewTabButtonParamsPtr>::Read(
::blink::mojom::blink::NewTabButtonParams::DataView input,
::blink::mojom::blink::NewTabButtonParamsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestDebugInfo::DataView, ::blink::mojom::blink::ManifestDebugInfoPtr>::Read(
::blink::mojom::blink::ManifestDebugInfo::DataView input,
::blink::mojom::blink::ManifestDebugInfoPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ManifestError::DataView, ::blink::mojom::blink::ManifestErrorPtr>::Read(
::blink::mojom::blink::ManifestError::DataView input,
::blink::mojom::blink::ManifestErrorPtr* output) { … }
bool UnionTraits<::blink::mojom::blink::HomeTabUnion::DataView, ::blink::mojom::blink::HomeTabUnionPtr>::Read(
::blink::mojom::blink::HomeTabUnion::DataView input,
::blink::mojom::blink::HomeTabUnionPtr* output) { … }
}
namespace blink::mojom::blink {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif