#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "chrome/browser/ui/webui/internals/user_education/user_education_internals.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/internals/user_education/user_education_internals.mojom-params-data.h"
#include "chrome/browser/ui/webui/internals/user_education/user_education_internals.mojom-shared-message-ids.h"
#include "chrome/browser/ui/webui/internals/user_education/user_education_internals.mojom-import-headers.h"
#include "chrome/browser/ui/webui/internals/user_education/user_education_internals.mojom-test-utils.h"
namespace mojom::user_education_internals {
FeaturePromoDemoPageData::FeaturePromoDemoPageData()
: … { … }
FeaturePromoDemoPageData::FeaturePromoDemoPageData(
const std::string& name_in,
const std::string& value_in)
: … { … }
FeaturePromoDemoPageData::~FeaturePromoDemoPageData() = default;
size_t FeaturePromoDemoPageData::Hash(size_t seed) const { … }
void FeaturePromoDemoPageData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FeaturePromoDemoPageData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FeaturePromoDemoPageInfo::FeaturePromoDemoPageInfo()
: … { … }
FeaturePromoDemoPageInfo::FeaturePromoDemoPageInfo(
const std::string& display_title_in,
const std::string& display_description_in,
const std::string& internal_name_in,
const std::string& type_in,
int32_t added_milestone_in,
std::vector<std::string> supported_platforms_in,
std::vector<std::string> required_features_in,
std::vector<std::string> instructions_in,
const std::string& followed_by_internal_name_in,
std::vector<FeaturePromoDemoPageDataPtr> data_in)
: … { … }
FeaturePromoDemoPageInfo::~FeaturePromoDemoPageInfo() = default;
void FeaturePromoDemoPageInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FeaturePromoDemoPageInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WhatsNewModuleDemoPageInfo::WhatsNewModuleDemoPageInfo()
: … { … }
WhatsNewModuleDemoPageInfo::WhatsNewModuleDemoPageInfo(
const std::string& display_title_in,
const std::string& module_name_in,
bool has_browser_command_in,
bool is_feature_enabled_in,
int32_t queue_position_in)
: … { … }
WhatsNewModuleDemoPageInfo::~WhatsNewModuleDemoPageInfo() = default;
size_t WhatsNewModuleDemoPageInfo::Hash(size_t seed) const { … }
void WhatsNewModuleDemoPageInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool WhatsNewModuleDemoPageInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WhatsNewEditionDemoPageInfo::WhatsNewEditionDemoPageInfo()
: … { … }
WhatsNewEditionDemoPageInfo::WhatsNewEditionDemoPageInfo(
const std::string& display_title_in,
const std::string& edition_name_in,
bool is_feature_enabled_in,
bool has_been_used_in,
int32_t version_used_in)
: … { … }
WhatsNewEditionDemoPageInfo::~WhatsNewEditionDemoPageInfo() = default;
size_t WhatsNewEditionDemoPageInfo::Hash(size_t seed) const { … }
void WhatsNewEditionDemoPageInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool WhatsNewEditionDemoPageInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char UserEducationInternalsPageHandler::Name_[] = …;
UserEducationInternalsPageHandler::IPCStableHashFunction UserEducationInternalsPageHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* UserEducationInternalsPageHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t UserEducationInternalsPageHandler::GetTutorials_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::StartTutorial_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::GetSessionData_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::GetFeaturePromos_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::ShowFeaturePromo_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::ClearFeaturePromoData_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::ClearSessionData_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::GetNewBadges_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::GetWhatsNewModules_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::GetWhatsNewEditions_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::ClearNewBadgeData_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::ClearWhatsNewData_Sym::IPCStableHash() { … }
uint32_t UserEducationInternalsPageHandler::LaunchWhatsNewStaging_Sym::IPCStableHash() { … }
# endif
class UserEducationInternalsPageHandler_GetTutorials_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_StartTutorial_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_GetSessionData_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_GetFeaturePromos_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_ShowFeaturePromo_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_ClearFeaturePromoData_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_ClearSessionData_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_GetNewBadges_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_GetWhatsNewModules_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_GetWhatsNewEditions_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_ClearNewBadgeData_ForwardToCallback
: public mojo::MessageReceiver { … };
class UserEducationInternalsPageHandler_ClearWhatsNewData_ForwardToCallback
: public mojo::MessageReceiver { … };
UserEducationInternalsPageHandlerProxy::UserEducationInternalsPageHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void UserEducationInternalsPageHandlerProxy::GetTutorials(
GetTutorialsCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::StartTutorial(
const std::string& in_tutorial_id, StartTutorialCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::GetSessionData(
GetSessionDataCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::GetFeaturePromos(
GetFeaturePromosCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::ShowFeaturePromo(
const std::string& in_feature_name, ShowFeaturePromoCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::ClearFeaturePromoData(
const std::string& in_feature_name, ClearFeaturePromoDataCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::ClearSessionData(
ClearSessionDataCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::GetNewBadges(
GetNewBadgesCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::GetWhatsNewModules(
GetWhatsNewModulesCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::GetWhatsNewEditions(
GetWhatsNewEditionsCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::ClearNewBadgeData(
const std::string& in_feature_name, ClearNewBadgeDataCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::ClearWhatsNewData(
ClearWhatsNewDataCallback callback) { … }
void UserEducationInternalsPageHandlerProxy::LaunchWhatsNewStaging(
) { … }
class UserEducationInternalsPageHandler_GetTutorials_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_GetTutorials_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_GetTutorials_ProxyToResponder::Run(
std::vector<FeaturePromoDemoPageInfoPtr> in_tutorial_infos) { … }
class UserEducationInternalsPageHandler_StartTutorial_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_StartTutorial_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_StartTutorial_ProxyToResponder::Run(
const std::string& in_error_message) { … }
class UserEducationInternalsPageHandler_GetSessionData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_GetSessionData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_GetSessionData_ProxyToResponder::Run(
std::vector<FeaturePromoDemoPageDataPtr> in_session_data) { … }
class UserEducationInternalsPageHandler_GetFeaturePromos_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_GetFeaturePromos_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_GetFeaturePromos_ProxyToResponder::Run(
std::vector<FeaturePromoDemoPageInfoPtr> in_feature_promos) { … }
class UserEducationInternalsPageHandler_ShowFeaturePromo_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_ShowFeaturePromo_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_ShowFeaturePromo_ProxyToResponder::Run(
const std::string& in_error_message) { … }
class UserEducationInternalsPageHandler_ClearFeaturePromoData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_ClearFeaturePromoData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_ClearFeaturePromoData_ProxyToResponder::Run(
const std::string& in_error_message) { … }
class UserEducationInternalsPageHandler_ClearSessionData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_ClearSessionData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_ClearSessionData_ProxyToResponder::Run(
const std::string& in_error_message) { … }
class UserEducationInternalsPageHandler_GetNewBadges_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_GetNewBadges_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_GetNewBadges_ProxyToResponder::Run(
std::vector<FeaturePromoDemoPageInfoPtr> in_new_badges) { … }
class UserEducationInternalsPageHandler_GetWhatsNewModules_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_GetWhatsNewModules_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_GetWhatsNewModules_ProxyToResponder::Run(
std::vector<WhatsNewModuleDemoPageInfoPtr> in_whats_new_modules) { … }
class UserEducationInternalsPageHandler_GetWhatsNewEditions_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_GetWhatsNewEditions_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_GetWhatsNewEditions_ProxyToResponder::Run(
std::vector<WhatsNewEditionDemoPageInfoPtr> in_whats_new_editions) { … }
class UserEducationInternalsPageHandler_ClearNewBadgeData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_ClearNewBadgeData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_ClearNewBadgeData_ProxyToResponder::Run(
const std::string& in_error_message) { … }
class UserEducationInternalsPageHandler_ClearWhatsNewData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool UserEducationInternalsPageHandler_ClearWhatsNewData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void UserEducationInternalsPageHandler_ClearWhatsNewData_ProxyToResponder::Run(
const std::string& in_error_message) { … }
bool UserEducationInternalsPageHandlerStubDispatch::Accept(
UserEducationInternalsPageHandler* impl,
mojo::Message* message) { … }
bool UserEducationInternalsPageHandlerStubDispatch::AcceptWithResponder(
UserEducationInternalsPageHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kUserEducationInternalsPageHandlerValidationInfo[] = …;
bool UserEducationInternalsPageHandlerRequestValidator::Accept(mojo::Message* message) { … }
bool UserEducationInternalsPageHandlerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::mojom::user_education_internals::FeaturePromoDemoPageData::DataView, ::mojom::user_education_internals::FeaturePromoDemoPageDataPtr>::Read(
::mojom::user_education_internals::FeaturePromoDemoPageData::DataView input,
::mojom::user_education_internals::FeaturePromoDemoPageDataPtr* output) { … }
bool StructTraits<::mojom::user_education_internals::FeaturePromoDemoPageInfo::DataView, ::mojom::user_education_internals::FeaturePromoDemoPageInfoPtr>::Read(
::mojom::user_education_internals::FeaturePromoDemoPageInfo::DataView input,
::mojom::user_education_internals::FeaturePromoDemoPageInfoPtr* output) { … }
bool StructTraits<::mojom::user_education_internals::WhatsNewModuleDemoPageInfo::DataView, ::mojom::user_education_internals::WhatsNewModuleDemoPageInfoPtr>::Read(
::mojom::user_education_internals::WhatsNewModuleDemoPageInfo::DataView input,
::mojom::user_education_internals::WhatsNewModuleDemoPageInfoPtr* output) { … }
bool StructTraits<::mojom::user_education_internals::WhatsNewEditionDemoPageInfo::DataView, ::mojom::user_education_internals::WhatsNewEditionDemoPageInfoPtr>::Read(
::mojom::user_education_internals::WhatsNewEditionDemoPageInfo::DataView input,
::mojom::user_education_internals::WhatsNewEditionDemoPageInfoPtr* output) { … }
}
namespace mojom::user_education_internals {
void UserEducationInternalsPageHandlerInterceptorForTesting::GetTutorials(GetTutorialsCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::StartTutorial(const std::string& tutorial_id, StartTutorialCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::GetSessionData(GetSessionDataCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::GetFeaturePromos(GetFeaturePromosCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::ShowFeaturePromo(const std::string& feature_name, ShowFeaturePromoCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::ClearFeaturePromoData(const std::string& feature_name, ClearFeaturePromoDataCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::ClearSessionData(ClearSessionDataCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::GetNewBadges(GetNewBadgesCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::GetWhatsNewModules(GetWhatsNewModulesCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::GetWhatsNewEditions(GetWhatsNewEditionsCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::ClearNewBadgeData(const std::string& feature_name, ClearNewBadgeDataCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::ClearWhatsNewData(ClearWhatsNewDataCallback callback) { … }
void UserEducationInternalsPageHandlerInterceptorForTesting::LaunchWhatsNewStaging() { … }
UserEducationInternalsPageHandlerAsyncWaiter::UserEducationInternalsPageHandlerAsyncWaiter(
UserEducationInternalsPageHandler* proxy) : … { … }
UserEducationInternalsPageHandlerAsyncWaiter::~UserEducationInternalsPageHandlerAsyncWaiter() = default;
void UserEducationInternalsPageHandlerAsyncWaiter::GetTutorials(
std::vector<FeaturePromoDemoPageInfoPtr>* out_tutorial_infos) { … }
std::vector<FeaturePromoDemoPageInfoPtr> UserEducationInternalsPageHandlerAsyncWaiter::GetTutorials(
) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::StartTutorial(
const std::string& tutorial_id, std::string* out_error_message) { … }
std::string UserEducationInternalsPageHandlerAsyncWaiter::StartTutorial(
const std::string& tutorial_id) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::GetSessionData(
std::vector<FeaturePromoDemoPageDataPtr>* out_session_data) { … }
std::vector<FeaturePromoDemoPageDataPtr> UserEducationInternalsPageHandlerAsyncWaiter::GetSessionData(
) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::GetFeaturePromos(
std::vector<FeaturePromoDemoPageInfoPtr>* out_feature_promos) { … }
std::vector<FeaturePromoDemoPageInfoPtr> UserEducationInternalsPageHandlerAsyncWaiter::GetFeaturePromos(
) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::ShowFeaturePromo(
const std::string& feature_name, std::string* out_error_message) { … }
std::string UserEducationInternalsPageHandlerAsyncWaiter::ShowFeaturePromo(
const std::string& feature_name) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::ClearFeaturePromoData(
const std::string& feature_name, std::string* out_error_message) { … }
std::string UserEducationInternalsPageHandlerAsyncWaiter::ClearFeaturePromoData(
const std::string& feature_name) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::ClearSessionData(
std::string* out_error_message) { … }
std::string UserEducationInternalsPageHandlerAsyncWaiter::ClearSessionData(
) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::GetNewBadges(
std::vector<FeaturePromoDemoPageInfoPtr>* out_new_badges) { … }
std::vector<FeaturePromoDemoPageInfoPtr> UserEducationInternalsPageHandlerAsyncWaiter::GetNewBadges(
) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::GetWhatsNewModules(
std::vector<WhatsNewModuleDemoPageInfoPtr>* out_whats_new_modules) { … }
std::vector<WhatsNewModuleDemoPageInfoPtr> UserEducationInternalsPageHandlerAsyncWaiter::GetWhatsNewModules(
) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::GetWhatsNewEditions(
std::vector<WhatsNewEditionDemoPageInfoPtr>* out_whats_new_editions) { … }
std::vector<WhatsNewEditionDemoPageInfoPtr> UserEducationInternalsPageHandlerAsyncWaiter::GetWhatsNewEditions(
) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::ClearNewBadgeData(
const std::string& feature_name, std::string* out_error_message) { … }
std::string UserEducationInternalsPageHandlerAsyncWaiter::ClearNewBadgeData(
const std::string& feature_name) { … }
void UserEducationInternalsPageHandlerAsyncWaiter::ClearWhatsNewData(
std::string* out_error_message) { … }
std::string UserEducationInternalsPageHandlerAsyncWaiter::ClearWhatsNewData(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif