chromium/out/Default/gen/chrome/browser/ui/webui/new_tab_page/new_tab_page.mojom.cc

// chrome/browser/ui/webui/new_tab_page/new_tab_page.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 "chrome/browser/ui/webui/new_tab_page/new_tab_page.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 "chrome/browser/ui/webui/new_tab_page/new_tab_page.mojom-params-data.h"
#include "chrome/browser/ui/webui/new_tab_page/new_tab_page.mojom-shared-message-ids.h"

#include "chrome/browser/ui/webui/new_tab_page/new_tab_page.mojom-import-headers.h"
#include "chrome/browser/ui/webui/new_tab_page/new_tab_page.mojom-test-utils.h"


namespace new_tab_page::mojom {
BackgroundCollection::BackgroundCollection()
    :{}

BackgroundCollection::BackgroundCollection(
    const std::string& id_in,
    const std::string& label_in,
    const ::GURL& preview_image_url_in)
    :{}

BackgroundCollection::~BackgroundCollection() = default;

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

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

CollectionImage::CollectionImage(
    const std::string& attribution_1_in,
    const std::string& attribution_2_in,
    const ::GURL& attribution_url_in,
    const ::GURL& image_url_in,
    const ::GURL& preview_image_url_in,
    const std::string& collection_id_in)
    :{}

CollectionImage::~CollectionImage() = default;

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

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

BackgroundImage::BackgroundImage(
    const ::GURL& url_in,
    const std::optional<::GURL>& url_2x_in,
    const std::optional<::GURL>& attribution_url_in,
    const std::optional<std::string>& size_in,
    const std::optional<std::string>& repeat_x_in,
    const std::optional<std::string>& repeat_y_in,
    const std::optional<std::string>& position_x_in,
    const std::optional<std::string>& position_y_in,
    NtpBackgroundImageSource image_source_in)
    :{}

BackgroundImage::~BackgroundImage() = default;

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

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

Theme::Theme(
    ::SkColor text_color_in,
    ::SkColor background_color_in,
    bool is_baseline_in,
    bool is_custom_background_in,
    bool daily_refresh_enabled_in,
    bool is_dark_in,
    std::optional<::SkColor> logo_color_in,
    const std::optional<std::string>& background_image_collection_id_in,
    BackgroundImagePtr background_image_in,
    const std::optional<std::string>& background_image_attribution_1_in,
    const std::optional<std::string>& background_image_attribution_2_in,
    const std::optional<::GURL>& background_image_attribution_url_in,
    ::most_visited::mojom::MostVisitedThemePtr most_visited_in)
    :{}

Theme::~Theme() = default;

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

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

ImageDoodle::ImageDoodle(
    const ::GURL& image_url_in,
    const std::optional<::GURL>& animation_url_in,
    uint32_t width_in,
    uint32_t height_in,
    ::SkColor background_color_in,
    const ::GURL& image_impression_log_url_in,
    const std::optional<::GURL>& animation_impression_log_url_in)
    :{}

ImageDoodle::~ImageDoodle() = default;

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

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

AllModeImageDoodle::AllModeImageDoodle(
    ImageDoodlePtr light_in,
    ImageDoodlePtr dark_in,
    const std::optional<::GURL>& on_click_url_in,
    const ::GURL& share_url_in)
    :{}

AllModeImageDoodle::~AllModeImageDoodle() = default;

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

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

InteractiveDoodle::InteractiveDoodle(
    const ::GURL& url_in,
    uint32_t width_in,
    uint32_t height_in)
    :{}

InteractiveDoodle::~InteractiveDoodle() = default;

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

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

Doodle::Doodle(
    AllModeImageDoodlePtr image_in,
    InteractiveDoodlePtr interactive_in,
    const std::string& description_in)
    :{}

Doodle::~Doodle() = default;

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

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

PromoImagePart::PromoImagePart(
    const ::GURL& image_url_in,
    const ::GURL& target_in)
    :{}

PromoImagePart::~PromoImagePart() = default;

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

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

PromoLinkPart::PromoLinkPart(
    const std::string& text_in,
    const ::GURL& url_in)
    :{}

PromoLinkPart::~PromoLinkPart() = default;

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

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

PromoTextPart::PromoTextPart(
    const std::string& text_in)
    :{}

PromoTextPart::~PromoTextPart() = default;
size_t PromoTextPart::Hash(size_t seed) const {}

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

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

Promo::Promo(
    const std::optional<std::string>& id_in,
    const std::optional<::GURL>& log_url_in,
    std::vector<PromoPartPtr> middle_slot_parts_in)
    :{}

Promo::~Promo() = default;

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

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

ModuleIdName::ModuleIdName(
    const std::string& id_in,
    const std::string& name_in)
    :{}

ModuleIdName::~ModuleIdName() = default;
size_t ModuleIdName::Hash(size_t seed) const {}

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

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

PromoPart::~PromoPart() {}


void PromoPart::set_image(
    PromoImagePartPtr image) {}
void PromoPart::set_link(
    PromoLinkPartPtr link) {}
void PromoPart::set_text(
    PromoTextPartPtr text) {}

void PromoPart::DestroyActive() {}

bool PromoPart::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char PageHandlerFactory::Name_[] =;

PageHandlerFactory::IPCStableHashFunction PageHandlerFactory::MessageToMethodInfo_(mojo::Message& message) {}


const char* PageHandlerFactory::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PageHandlerFactory::CreatePageHandler_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

PageHandlerFactoryProxy::PageHandlerFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PageHandlerFactoryProxy::CreatePageHandler(
    ::mojo::PendingRemote<Page> in_page, ::mojo::PendingReceiver<PageHandler> in_handler) {}

// static
bool PageHandlerFactoryStubDispatch::Accept(
    PageHandlerFactory* impl,
    mojo::Message* message) {}

// static
bool PageHandlerFactoryStubDispatch::AcceptWithResponder(
    PageHandlerFactory* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPageHandlerFactoryValidationInfo[] =;

bool PageHandlerFactoryRequestValidator::Accept(mojo::Message* message) {}

const char PageHandler::Name_[] =;

PageHandler::IPCStableHashFunction PageHandler::MessageToMethodInfo_(mojo::Message& message) {}


const char* PageHandler::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PageHandler::SetBackgroundImage_Sym::IPCStableHash() {}
uint32_t PageHandler::SetDailyRefreshCollectionId_Sym::IPCStableHash() {}
uint32_t PageHandler::SetNoBackgroundImage_Sym::IPCStableHash() {}
uint32_t PageHandler::RevertBackgroundChanges_Sym::IPCStableHash() {}
uint32_t PageHandler::ConfirmBackgroundChanges_Sym::IPCStableHash() {}
uint32_t PageHandler::SetMostVisitedSettings_Sym::IPCStableHash() {}
uint32_t PageHandler::GetMostVisitedSettings_Sym::IPCStableHash() {}
uint32_t PageHandler::GetBackgroundCollections_Sym::IPCStableHash() {}
uint32_t PageHandler::GetBackgroundImages_Sym::IPCStableHash() {}
uint32_t PageHandler::GetDoodle_Sym::IPCStableHash() {}
uint32_t PageHandler::ChooseLocalCustomBackground_Sym::IPCStableHash() {}
uint32_t PageHandler::UpdatePromoData_Sym::IPCStableHash() {}
uint32_t PageHandler::BlocklistPromo_Sym::IPCStableHash() {}
uint32_t PageHandler::UndoBlocklistPromo_Sym::IPCStableHash() {}
uint32_t PageHandler::OnDismissModule_Sym::IPCStableHash() {}
uint32_t PageHandler::OnRestoreModule_Sym::IPCStableHash() {}
uint32_t PageHandler::SetModulesVisible_Sym::IPCStableHash() {}
uint32_t PageHandler::SetModuleDisabled_Sym::IPCStableHash() {}
uint32_t PageHandler::UpdateDisabledModules_Sym::IPCStableHash() {}
uint32_t PageHandler::OnModulesLoadedWithData_Sym::IPCStableHash() {}
uint32_t PageHandler::OnModuleUsed_Sym::IPCStableHash() {}
uint32_t PageHandler::GetModulesIdNames_Sym::IPCStableHash() {}
uint32_t PageHandler::SetModulesOrder_Sym::IPCStableHash() {}
uint32_t PageHandler::GetModulesOrder_Sym::IPCStableHash() {}
uint32_t PageHandler::SetCustomizeChromeSidePanelVisible_Sym::IPCStableHash() {}
uint32_t PageHandler::IncrementCustomizeChromeButtonOpenCount_Sym::IPCStableHash() {}
uint32_t PageHandler::MaybeShowFeaturePromo_Sym::IPCStableHash() {}
uint32_t PageHandler::IncrementWallpaperSearchButtonShownCount_Sym::IPCStableHash() {}
uint32_t PageHandler::OnOneGoogleBarRendered_Sym::IPCStableHash() {}
uint32_t PageHandler::OnPromoRendered_Sym::IPCStableHash() {}
uint32_t PageHandler::OnCustomizeDialogAction_Sym::IPCStableHash() {}
uint32_t PageHandler::OnDoodleImageClicked_Sym::IPCStableHash() {}
uint32_t PageHandler::OnDoodleImageRendered_Sym::IPCStableHash() {}
uint32_t PageHandler::OnDoodleShared_Sym::IPCStableHash() {}
uint32_t PageHandler::OnPromoLinkClicked_Sym::IPCStableHash() {}
uint32_t PageHandler::OnAppRendered_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PageHandler_GetMostVisitedSettings_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_GetBackgroundCollections_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_GetBackgroundImages_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_GetDoodle_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_ChooseLocalCustomBackground_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_GetModulesIdNames_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_GetModulesOrder_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_OnDoodleImageRendered_ForwardToCallback
    : public mojo::MessageReceiver {};

PageHandlerProxy::PageHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PageHandlerProxy::SetBackgroundImage(
    const std::string& in_attribution_1, const std::string& in_attribution_2, const ::GURL& in_attribution_url, const ::GURL& in_image_url, const ::GURL& in_thumbnail_url, const std::string& in_collection_id) {}

void PageHandlerProxy::SetDailyRefreshCollectionId(
    const std::string& in_collection_id) {}

void PageHandlerProxy::SetNoBackgroundImage(
    ) {}

void PageHandlerProxy::RevertBackgroundChanges(
    ) {}

void PageHandlerProxy::ConfirmBackgroundChanges(
    ) {}

void PageHandlerProxy::SetMostVisitedSettings(
    bool in_custom_links_enabled, bool in_shortcuts_visible) {}

void PageHandlerProxy::GetMostVisitedSettings(
    GetMostVisitedSettingsCallback callback) {}

void PageHandlerProxy::GetBackgroundCollections(
    GetBackgroundCollectionsCallback callback) {}

void PageHandlerProxy::GetBackgroundImages(
    const std::string& in_collection_id, GetBackgroundImagesCallback callback) {}

void PageHandlerProxy::GetDoodle(
    GetDoodleCallback callback) {}

void PageHandlerProxy::ChooseLocalCustomBackground(
    ChooseLocalCustomBackgroundCallback callback) {}

void PageHandlerProxy::UpdatePromoData(
    ) {}

void PageHandlerProxy::BlocklistPromo(
    const std::string& in_promo_id) {}

void PageHandlerProxy::UndoBlocklistPromo(
    const std::string& in_promo_id) {}

void PageHandlerProxy::OnDismissModule(
    const std::string& in_module_id) {}

void PageHandlerProxy::OnRestoreModule(
    const std::string& in_module_id) {}

void PageHandlerProxy::SetModulesVisible(
    bool in_visible) {}

void PageHandlerProxy::SetModuleDisabled(
    const std::string& in_module_id, bool in_disabled) {}

void PageHandlerProxy::UpdateDisabledModules(
    ) {}

void PageHandlerProxy::OnModulesLoadedWithData(
    const std::vector<std::string>& in_module_ids) {}

void PageHandlerProxy::OnModuleUsed(
    const std::string& in_module_id) {}

void PageHandlerProxy::GetModulesIdNames(
    GetModulesIdNamesCallback callback) {}

void PageHandlerProxy::SetModulesOrder(
    const std::vector<std::string>& in_module_ids) {}

void PageHandlerProxy::GetModulesOrder(
    GetModulesOrderCallback callback) {}

void PageHandlerProxy::SetCustomizeChromeSidePanelVisible(
    bool in_visible, CustomizeChromeSection in_section) {}

void PageHandlerProxy::IncrementCustomizeChromeButtonOpenCount(
    ) {}

void PageHandlerProxy::MaybeShowFeaturePromo(
    IphFeature in_iph_feature) {}

void PageHandlerProxy::IncrementWallpaperSearchButtonShownCount(
    ) {}

void PageHandlerProxy::OnOneGoogleBarRendered(
    double in_time) {}

void PageHandlerProxy::OnPromoRendered(
    double in_time, const std::optional<::GURL>& in_log_url) {}

void PageHandlerProxy::OnCustomizeDialogAction(
    CustomizeDialogAction in_action) {}

void PageHandlerProxy::OnDoodleImageClicked(
    DoodleImageType in_type, const std::optional<::GURL>& in_log_url) {}

void PageHandlerProxy::OnDoodleImageRendered(
    DoodleImageType in_type, double in_time, const ::GURL& in_log_url, OnDoodleImageRenderedCallback callback) {}

void PageHandlerProxy::OnDoodleShared(
    DoodleShareChannel in_channel, const std::string& in_doodle_id, const std::optional<std::string>& in_share_id) {}

void PageHandlerProxy::OnPromoLinkClicked(
    ) {}

void PageHandlerProxy::OnAppRendered(
    double in_time) {}
class PageHandler_GetMostVisitedSettings_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetMostVisitedSettings_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetMostVisitedSettings_ProxyToResponder::Run(
    bool in_custom_links_enabled, bool in_shortcuts_visible) {}
class PageHandler_GetBackgroundCollections_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetBackgroundCollections_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetBackgroundCollections_ProxyToResponder::Run(
    std::vector<BackgroundCollectionPtr> in_collections) {}
class PageHandler_GetBackgroundImages_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetBackgroundImages_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetBackgroundImages_ProxyToResponder::Run(
    std::vector<CollectionImagePtr> in_images) {}
class PageHandler_GetDoodle_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetDoodle_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetDoodle_ProxyToResponder::Run(
    DoodlePtr in_doodle) {}
class PageHandler_ChooseLocalCustomBackground_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_ChooseLocalCustomBackground_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_ChooseLocalCustomBackground_ProxyToResponder::Run(
    bool in_success) {}
class PageHandler_GetModulesIdNames_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetModulesIdNames_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetModulesIdNames_ProxyToResponder::Run(
    std::vector<ModuleIdNamePtr> in_data) {}
class PageHandler_GetModulesOrder_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetModulesOrder_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetModulesOrder_ProxyToResponder::Run(
    const std::vector<std::string>& in_module_ids) {}
class PageHandler_OnDoodleImageRendered_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_OnDoodleImageRendered_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_OnDoodleImageRendered_ProxyToResponder::Run(
    const std::optional<std::string>& in_image_click_params, const std::optional<::GURL>& in_interaction_log_url, const std::optional<std::string>& in_share_id) {}

// static
bool PageHandlerStubDispatch::Accept(
    PageHandler* impl,
    mojo::Message* message) {}

// static
bool PageHandlerStubDispatch::AcceptWithResponder(
    PageHandler* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPageHandlerValidationInfo[] =;

bool PageHandlerRequestValidator::Accept(mojo::Message* message) {}

bool PageHandlerResponseValidator::Accept(mojo::Message* message) {}
const char Page::Name_[] =;

Page::IPCStableHashFunction Page::MessageToMethodInfo_(mojo::Message& message) {}


const char* Page::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Page::SetCustomizeChromeSidePanelVisibility_Sym::IPCStableHash() {}
uint32_t Page::SetTheme_Sym::IPCStableHash() {}
uint32_t Page::SetDisabledModules_Sym::IPCStableHash() {}
uint32_t Page::SetPromo_Sym::IPCStableHash() {}
uint32_t Page::ShowWebstoreToast_Sym::IPCStableHash() {}
uint32_t Page::SetWallpaperSearchButtonVisibility_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

PageProxy::PageProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PageProxy::SetCustomizeChromeSidePanelVisibility(
    bool in_visible) {}

void PageProxy::SetTheme(
    ThemePtr in_theme) {}

void PageProxy::SetDisabledModules(
    bool in_all, const std::vector<std::string>& in_ids) {}

void PageProxy::SetPromo(
    PromoPtr in_promo) {}

void PageProxy::ShowWebstoreToast(
    ) {}

void PageProxy::SetWallpaperSearchButtonVisibility(
    bool in_visible) {}

// static
bool PageStubDispatch::Accept(
    Page* impl,
    mojo::Message* message) {}

// static
bool PageStubDispatch::AcceptWithResponder(
    Page* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPageValidationInfo[] =;

bool PageRequestValidator::Accept(mojo::Message* message) {}



}  // new_tab_page::mojom


namespace mojo {


// static
bool StructTraits<::new_tab_page::mojom::BackgroundCollection::DataView, ::new_tab_page::mojom::BackgroundCollectionPtr>::Read(
    ::new_tab_page::mojom::BackgroundCollection::DataView input,
    ::new_tab_page::mojom::BackgroundCollectionPtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::CollectionImage::DataView, ::new_tab_page::mojom::CollectionImagePtr>::Read(
    ::new_tab_page::mojom::CollectionImage::DataView input,
    ::new_tab_page::mojom::CollectionImagePtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::BackgroundImage::DataView, ::new_tab_page::mojom::BackgroundImagePtr>::Read(
    ::new_tab_page::mojom::BackgroundImage::DataView input,
    ::new_tab_page::mojom::BackgroundImagePtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::Theme::DataView, ::new_tab_page::mojom::ThemePtr>::Read(
    ::new_tab_page::mojom::Theme::DataView input,
    ::new_tab_page::mojom::ThemePtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::ImageDoodle::DataView, ::new_tab_page::mojom::ImageDoodlePtr>::Read(
    ::new_tab_page::mojom::ImageDoodle::DataView input,
    ::new_tab_page::mojom::ImageDoodlePtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::AllModeImageDoodle::DataView, ::new_tab_page::mojom::AllModeImageDoodlePtr>::Read(
    ::new_tab_page::mojom::AllModeImageDoodle::DataView input,
    ::new_tab_page::mojom::AllModeImageDoodlePtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::InteractiveDoodle::DataView, ::new_tab_page::mojom::InteractiveDoodlePtr>::Read(
    ::new_tab_page::mojom::InteractiveDoodle::DataView input,
    ::new_tab_page::mojom::InteractiveDoodlePtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::Doodle::DataView, ::new_tab_page::mojom::DoodlePtr>::Read(
    ::new_tab_page::mojom::Doodle::DataView input,
    ::new_tab_page::mojom::DoodlePtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::PromoImagePart::DataView, ::new_tab_page::mojom::PromoImagePartPtr>::Read(
    ::new_tab_page::mojom::PromoImagePart::DataView input,
    ::new_tab_page::mojom::PromoImagePartPtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::PromoLinkPart::DataView, ::new_tab_page::mojom::PromoLinkPartPtr>::Read(
    ::new_tab_page::mojom::PromoLinkPart::DataView input,
    ::new_tab_page::mojom::PromoLinkPartPtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::PromoTextPart::DataView, ::new_tab_page::mojom::PromoTextPartPtr>::Read(
    ::new_tab_page::mojom::PromoTextPart::DataView input,
    ::new_tab_page::mojom::PromoTextPartPtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::Promo::DataView, ::new_tab_page::mojom::PromoPtr>::Read(
    ::new_tab_page::mojom::Promo::DataView input,
    ::new_tab_page::mojom::PromoPtr* output) {}


// static
bool StructTraits<::new_tab_page::mojom::ModuleIdName::DataView, ::new_tab_page::mojom::ModuleIdNamePtr>::Read(
    ::new_tab_page::mojom::ModuleIdName::DataView input,
    ::new_tab_page::mojom::ModuleIdNamePtr* output) {}

// static
bool UnionTraits<::new_tab_page::mojom::PromoPart::DataView, ::new_tab_page::mojom::PromoPartPtr>::Read(
    ::new_tab_page::mojom::PromoPart::DataView input,
    ::new_tab_page::mojom::PromoPartPtr* 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 new_tab_page::mojom {


void PageHandlerFactoryInterceptorForTesting::CreatePageHandler(::mojo::PendingRemote<Page> page, ::mojo::PendingReceiver<PageHandler> handler) {}
PageHandlerFactoryAsyncWaiter::PageHandlerFactoryAsyncWaiter(
    PageHandlerFactory* proxy) :{}

PageHandlerFactoryAsyncWaiter::~PageHandlerFactoryAsyncWaiter() = default;




void PageHandlerInterceptorForTesting::SetBackgroundImage(const std::string& attribution_1, const std::string& attribution_2, const ::GURL& attribution_url, const ::GURL& image_url, const ::GURL& thumbnail_url, const std::string& collection_id) {}
void PageHandlerInterceptorForTesting::SetDailyRefreshCollectionId(const std::string& collection_id) {}
void PageHandlerInterceptorForTesting::SetNoBackgroundImage() {}
void PageHandlerInterceptorForTesting::RevertBackgroundChanges() {}
void PageHandlerInterceptorForTesting::ConfirmBackgroundChanges() {}
void PageHandlerInterceptorForTesting::SetMostVisitedSettings(bool custom_links_enabled, bool shortcuts_visible) {}
void PageHandlerInterceptorForTesting::GetMostVisitedSettings(GetMostVisitedSettingsCallback callback) {}
void PageHandlerInterceptorForTesting::GetBackgroundCollections(GetBackgroundCollectionsCallback callback) {}
void PageHandlerInterceptorForTesting::GetBackgroundImages(const std::string& collection_id, GetBackgroundImagesCallback callback) {}
void PageHandlerInterceptorForTesting::GetDoodle(GetDoodleCallback callback) {}
void PageHandlerInterceptorForTesting::ChooseLocalCustomBackground(ChooseLocalCustomBackgroundCallback callback) {}
void PageHandlerInterceptorForTesting::UpdatePromoData() {}
void PageHandlerInterceptorForTesting::BlocklistPromo(const std::string& promo_id) {}
void PageHandlerInterceptorForTesting::UndoBlocklistPromo(const std::string& promo_id) {}
void PageHandlerInterceptorForTesting::OnDismissModule(const std::string& module_id) {}
void PageHandlerInterceptorForTesting::OnRestoreModule(const std::string& module_id) {}
void PageHandlerInterceptorForTesting::SetModulesVisible(bool visible) {}
void PageHandlerInterceptorForTesting::SetModuleDisabled(const std::string& module_id, bool disabled) {}
void PageHandlerInterceptorForTesting::UpdateDisabledModules() {}
void PageHandlerInterceptorForTesting::OnModulesLoadedWithData(const std::vector<std::string>& module_ids) {}
void PageHandlerInterceptorForTesting::OnModuleUsed(const std::string& module_id) {}
void PageHandlerInterceptorForTesting::GetModulesIdNames(GetModulesIdNamesCallback callback) {}
void PageHandlerInterceptorForTesting::SetModulesOrder(const std::vector<std::string>& module_ids) {}
void PageHandlerInterceptorForTesting::GetModulesOrder(GetModulesOrderCallback callback) {}
void PageHandlerInterceptorForTesting::SetCustomizeChromeSidePanelVisible(bool visible, CustomizeChromeSection section) {}
void PageHandlerInterceptorForTesting::IncrementCustomizeChromeButtonOpenCount() {}
void PageHandlerInterceptorForTesting::MaybeShowFeaturePromo(IphFeature iph_feature) {}
void PageHandlerInterceptorForTesting::IncrementWallpaperSearchButtonShownCount() {}
void PageHandlerInterceptorForTesting::OnOneGoogleBarRendered(double time) {}
void PageHandlerInterceptorForTesting::OnPromoRendered(double time, const std::optional<::GURL>& log_url) {}
void PageHandlerInterceptorForTesting::OnCustomizeDialogAction(CustomizeDialogAction action) {}
void PageHandlerInterceptorForTesting::OnDoodleImageClicked(DoodleImageType type, const std::optional<::GURL>& log_url) {}
void PageHandlerInterceptorForTesting::OnDoodleImageRendered(DoodleImageType type, double time, const ::GURL& log_url, OnDoodleImageRenderedCallback callback) {}
void PageHandlerInterceptorForTesting::OnDoodleShared(DoodleShareChannel channel, const std::string& doodle_id, const std::optional<std::string>& share_id) {}
void PageHandlerInterceptorForTesting::OnPromoLinkClicked() {}
void PageHandlerInterceptorForTesting::OnAppRendered(double time) {}
PageHandlerAsyncWaiter::PageHandlerAsyncWaiter(
    PageHandler* proxy) :{}

PageHandlerAsyncWaiter::~PageHandlerAsyncWaiter() = default;

void PageHandlerAsyncWaiter::GetMostVisitedSettings(
    bool* out_custom_links_enabled, bool* out_shortcuts_visible) {}



void PageHandlerAsyncWaiter::GetBackgroundCollections(
    std::vector<BackgroundCollectionPtr>* out_collections) {}

std::vector<BackgroundCollectionPtr> PageHandlerAsyncWaiter::GetBackgroundCollections(
    ) {}

void PageHandlerAsyncWaiter::GetBackgroundImages(
    const std::string& collection_id, std::vector<CollectionImagePtr>* out_images) {}

std::vector<CollectionImagePtr> PageHandlerAsyncWaiter::GetBackgroundImages(
    const std::string& collection_id) {}

void PageHandlerAsyncWaiter::GetDoodle(
    DoodlePtr* out_doodle) {}

DoodlePtr PageHandlerAsyncWaiter::GetDoodle(
    ) {}

void PageHandlerAsyncWaiter::ChooseLocalCustomBackground(
    bool* out_success) {}

bool PageHandlerAsyncWaiter::ChooseLocalCustomBackground(
    ) {}

void PageHandlerAsyncWaiter::GetModulesIdNames(
    std::vector<ModuleIdNamePtr>* out_data) {}

std::vector<ModuleIdNamePtr> PageHandlerAsyncWaiter::GetModulesIdNames(
    ) {}

void PageHandlerAsyncWaiter::GetModulesOrder(
    std::vector<std::string>* out_module_ids) {}

std::vector<std::string> PageHandlerAsyncWaiter::GetModulesOrder(
    ) {}

void PageHandlerAsyncWaiter::OnDoodleImageRendered(
    DoodleImageType type, double time, const ::GURL& log_url, std::optional<std::string>* out_image_click_params, std::optional<::GURL>* out_interaction_log_url, std::optional<std::string>* out_share_id) {}






void PageInterceptorForTesting::SetCustomizeChromeSidePanelVisibility(bool visible) {}
void PageInterceptorForTesting::SetTheme(ThemePtr theme) {}
void PageInterceptorForTesting::SetDisabledModules(bool all, const std::vector<std::string>& ids) {}
void PageInterceptorForTesting::SetPromo(PromoPtr promo) {}
void PageInterceptorForTesting::ShowWebstoreToast() {}
void PageInterceptorForTesting::SetWallpaperSearchButtonVisibility(bool visible) {}
PageAsyncWaiter::PageAsyncWaiter(
    Page* proxy) :{}

PageAsyncWaiter::~PageAsyncWaiter() = default;






}  // new_tab_page::mojom


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