chromium/out/Default/gen/third_party/blink/public/mojom/manifest/manifest.mojom.cc

// third_party/blink/public/mojom/manifest/manifest.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 "third_party/blink/public/mojom/manifest/manifest.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/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-import-headers.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom-test-utils.h"
#include "third_party/blink/common/permissions_policy/permissions_policy_mojom_traits.h"
#include "third_party/blink/public/common/manifest/manifest_mojom_traits.h"


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

Manifest::Manifest(
    const ::GURL& manifest_url_in,
    const std::optional<::std::u16string>& name_in,
    const std::optional<::std::u16string>& short_name_in,
    const std::optional<::std::u16string>& description_in,
    const ::GURL& id_in,
    bool has_custom_id_in,
    const ::GURL& start_url_in,
    bool has_valid_specified_start_url_in,
    ::blink::mojom::DisplayMode display_in,
    std::vector<::blink::mojom::DisplayMode> display_override_in,
    ::device::mojom::ScreenOrientationLockType orientation_in,
    std::vector<::blink::Manifest::ImageResource> icons_in,
    std::vector<ManifestScreenshotPtr> screenshots_in,
    std::vector<::blink::Manifest::ShortcutItem> shortcuts_in,
    const std::optional<::blink::Manifest::ShareTarget>& share_target_in,
    std::vector<ManifestFileHandlerPtr> file_handlers_in,
    std::vector<ManifestProtocolHandlerPtr> protocol_handlers_in,
    std::vector<ManifestUrlHandlerPtr> url_handlers_in,
    std::vector<ManifestScopeExtensionPtr> scope_extensions_in,
    ManifestLockScreenPtr lock_screen_in,
    ManifestNoteTakingPtr note_taking_in,
    std::vector<::blink::Manifest::RelatedApplication> 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 std::optional<::std::u16string>& gcm_sender_id_in,
    const ::GURL& scope_in,
    ::blink::mojom::CaptureLinks capture_links_in,
    std::vector<::blink::ParsedPermissionsPolicyDeclaration> permissions_policy_in,
    const std::optional<::blink::Manifest::LaunchHandler>& launch_handler_in,
    const base::flat_map<::std::u16string, ::blink::Manifest::TranslationItem>& 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,
    const std::optional<::blink::Manifest::TabStrip>& tab_strip_in,
    const std::optional<::std::u16string>& 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 ::std::u16string& name_in,
    const std::optional<::std::u16string>& short_name_in,
    const std::optional<::std::u16string>& description_in,
    const ::GURL& url_in,
    std::vector<::blink::Manifest::ImageResource> 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 ::GURL& src_in,
    const std::optional<::std::u16string>& type_in,
    std::vector<::gfx::Size> sizes_in,
    std::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(
    const ::blink::Manifest::ImageResource& image_in,
    ManifestScreenshot::FormFactor form_factor_in,
    const std::optional<::std::u16string>& 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 std::optional<::std::u16string>& name_in,
    std::vector<::std::u16string> 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 ::std::u16string& protocol_in,
    const ::GURL& 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 ::url::Origin& 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 ::url::Origin& 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 ::GURL& 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 ::GURL& 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 std::optional<::std::u16string>& platform_in,
    const std::optional<::GURL>& url_in,
    const std::optional<::std::u16string>& 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 std::optional<::std::u16string>& title_in,
    const std::optional<::std::u16string>& text_in,
    const std::optional<::std::u16string>& url_in,
    std::optional<std::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 ::GURL& 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 ::GURL& action_in,
    const ::std::u16string& name_in,
    std::vector<::blink::Manifest::ImageResource> icons_in,
    const base::flat_map<::std::u16string, std::vector<::std::u16string>>& 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 std::optional<::std::u16string>& name_in,
    const std::optional<::std::u16string>& short_name_in,
    const std::optional<::std::u16string>& 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(
    std::vector<::blink::Manifest::ImageResource> icons_in,
    std::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<::GURL>& 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(
    std::vector<ManifestErrorPtr> errors_in,
    const std::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 std::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) {}


}  // blink::mojom


namespace mojo {


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

// static
bool UnionTraits<::blink::mojom::HomeTabUnion::DataView, ::blink::mojom::HomeTabUnionPtr>::Read(
    ::blink::mojom::HomeTabUnion::DataView input,
    ::blink::mojom::HomeTabUnionPtr* 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::mojom


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