#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "chrome/browser/ui/webui/side_panel/customize_chrome/wallpaper_search/wallpaper_search.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/side_panel/customize_chrome/wallpaper_search/wallpaper_search.mojom-params-data.h"
#include "chrome/browser/ui/webui/side_panel/customize_chrome/wallpaper_search/wallpaper_search.mojom-shared-message-ids.h"
#include "chrome/browser/ui/webui/side_panel/customize_chrome/wallpaper_search/wallpaper_search.mojom-import-headers.h"
#include "chrome/browser/ui/webui/side_panel/customize_chrome/wallpaper_search/wallpaper_search.mojom-test-utils.h"
namespace side_panel::customize_chrome::mojom {
KeyLabel::KeyLabel()
: … { … }
KeyLabel::KeyLabel(
const std::string& key_in,
const std::string& label_in)
: … { … }
KeyLabel::~KeyLabel() = default;
size_t KeyLabel::Hash(size_t seed) const { … }
void KeyLabel::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool KeyLabel::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Group::Group()
: … { … }
Group::Group(
const std::string& category_in,
std::vector<KeyLabelPtr> descriptor_as_in)
: … { … }
Group::~Group() = default;
void Group::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool Group::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DescriptorB::DescriptorB()
: … { … }
DescriptorB::DescriptorB(
const std::string& key_in,
const std::string& label_in,
const std::string& image_path_in)
: … { … }
DescriptorB::~DescriptorB() = default;
size_t DescriptorB::Hash(size_t seed) const { … }
void DescriptorB::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DescriptorB::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Descriptors::Descriptors()
: … { … }
Descriptors::Descriptors(
std::vector<GroupPtr> groups_in,
std::vector<DescriptorBPtr> descriptor_b_in,
std::vector<KeyLabelPtr> descriptor_c_in)
: … { … }
Descriptors::~Descriptors() = default;
void Descriptors::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool Descriptors::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Inspiration::Inspiration()
: … { … }
Inspiration::Inspiration(
const ::base::Token& id_in,
const std::string& description_in,
const ::GURL& background_url_in,
const ::GURL& thumbnail_url_in)
: … { … }
Inspiration::~Inspiration() = default;
void Inspiration::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool Inspiration::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
InspirationDescriptors::InspirationDescriptors()
: … { … }
InspirationDescriptors::InspirationDescriptors(
KeyLabelPtr subject_in,
KeyLabelPtr style_in,
KeyLabelPtr mood_in,
DescriptorDValuePtr color_in)
: … { … }
InspirationDescriptors::~InspirationDescriptors() = default;
void InspirationDescriptors::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool InspirationDescriptors::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
InspirationGroup::InspirationGroup()
: … { … }
InspirationGroup::InspirationGroup(
InspirationDescriptorsPtr descriptors_in,
std::vector<InspirationPtr> inspirations_in)
: … { … }
InspirationGroup::~InspirationGroup() = default;
void InspirationGroup::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool InspirationGroup::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WallpaperSearchResult::WallpaperSearchResult()
: … { … }
WallpaperSearchResult::WallpaperSearchResult(
const ::base::Token& id_in,
const std::string& image_in,
ResultDescriptorsPtr descriptors_in)
: … { … }
WallpaperSearchResult::~WallpaperSearchResult() = default;
void WallpaperSearchResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool WallpaperSearchResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ResultDescriptors::ResultDescriptors()
: … { … }
ResultDescriptors::ResultDescriptors(
const std::optional<std::string>& subject_in,
const std::optional<std::string>& style_in,
const std::optional<std::string>& mood_in,
DescriptorDValuePtr color_in)
: … { … }
ResultDescriptors::~ResultDescriptors() = default;
void ResultDescriptors::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ResultDescriptors::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DescriptorDValue::DescriptorDValue() : … { … }
DescriptorDValue::~DescriptorDValue() { … }
void DescriptorDValue::set_color(
::SkColor color) { … }
void DescriptorDValue::set_hue(
float hue) { … }
void DescriptorDValue::set_name(
DescriptorDName name) { … }
void DescriptorDValue::DestroyActive() { … }
bool DescriptorDValue::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char WallpaperSearchHandlerFactory::Name_[] = …;
WallpaperSearchHandlerFactory::IPCStableHashFunction WallpaperSearchHandlerFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WallpaperSearchHandlerFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WallpaperSearchHandlerFactory::CreateWallpaperSearchHandler_Sym::IPCStableHash() { … }
# endif
WallpaperSearchHandlerFactoryProxy::WallpaperSearchHandlerFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void WallpaperSearchHandlerFactoryProxy::CreateWallpaperSearchHandler(
::mojo::PendingRemote<WallpaperSearchClient> in_client, ::mojo::PendingReceiver<WallpaperSearchHandler> in_handler) { … }
bool WallpaperSearchHandlerFactoryStubDispatch::Accept(
WallpaperSearchHandlerFactory* impl,
mojo::Message* message) { … }
bool WallpaperSearchHandlerFactoryStubDispatch::AcceptWithResponder(
WallpaperSearchHandlerFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWallpaperSearchHandlerFactoryValidationInfo[] = …;
bool WallpaperSearchHandlerFactoryRequestValidator::Accept(mojo::Message* message) { … }
const char WallpaperSearchHandler::Name_[] = …;
WallpaperSearchHandler::IPCStableHashFunction WallpaperSearchHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WallpaperSearchHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WallpaperSearchHandler::GetDescriptors_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::GetInspirations_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::GetWallpaperSearchResults_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::SetResultRenderTime_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::SetBackgroundToHistoryImage_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::SetBackgroundToInspirationImage_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::SetBackgroundToWallpaperSearchResult_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::UpdateHistory_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::SetUserFeedback_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::OpenHelpArticle_Sym::IPCStableHash() { … }
uint32_t WallpaperSearchHandler::LaunchHatsSurvey_Sym::IPCStableHash() { … }
# endif
class WallpaperSearchHandler_GetDescriptors_ForwardToCallback
: public mojo::MessageReceiver { … };
class WallpaperSearchHandler_GetInspirations_ForwardToCallback
: public mojo::MessageReceiver { … };
class WallpaperSearchHandler_GetWallpaperSearchResults_ForwardToCallback
: public mojo::MessageReceiver { … };
WallpaperSearchHandlerProxy::WallpaperSearchHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void WallpaperSearchHandlerProxy::GetDescriptors(
GetDescriptorsCallback callback) { … }
void WallpaperSearchHandlerProxy::GetInspirations(
GetInspirationsCallback callback) { … }
void WallpaperSearchHandlerProxy::GetWallpaperSearchResults(
ResultDescriptorsPtr in_result_descriptors, GetWallpaperSearchResultsCallback callback) { … }
void WallpaperSearchHandlerProxy::SetResultRenderTime(
const std::vector<::base::Token>& in_result_ids, double in_time) { … }
void WallpaperSearchHandlerProxy::SetBackgroundToHistoryImage(
const ::base::Token& in_result_id, ResultDescriptorsPtr in_descriptors) { … }
void WallpaperSearchHandlerProxy::SetBackgroundToInspirationImage(
const ::base::Token& in_id, const ::GURL& in_background_url) { … }
void WallpaperSearchHandlerProxy::SetBackgroundToWallpaperSearchResult(
const ::base::Token& in_result_id, double in_time, ResultDescriptorsPtr in_descriptors) { … }
void WallpaperSearchHandlerProxy::UpdateHistory(
) { … }
void WallpaperSearchHandlerProxy::SetUserFeedback(
UserFeedback in_selected_option) { … }
void WallpaperSearchHandlerProxy::OpenHelpArticle(
) { … }
void WallpaperSearchHandlerProxy::LaunchHatsSurvey(
) { … }
class WallpaperSearchHandler_GetDescriptors_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WallpaperSearchHandler_GetDescriptors_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WallpaperSearchHandler_GetDescriptors_ProxyToResponder::Run(
DescriptorsPtr in_descriptors) { … }
class WallpaperSearchHandler_GetInspirations_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WallpaperSearchHandler_GetInspirations_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WallpaperSearchHandler_GetInspirations_ProxyToResponder::Run(
std::optional<std::vector<InspirationGroupPtr>> in_inspirationGroups) { … }
class WallpaperSearchHandler_GetWallpaperSearchResults_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WallpaperSearchHandler_GetWallpaperSearchResults_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WallpaperSearchHandler_GetWallpaperSearchResults_ProxyToResponder::Run(
WallpaperSearchStatus in_status, std::vector<WallpaperSearchResultPtr> in_results) { … }
bool WallpaperSearchHandlerStubDispatch::Accept(
WallpaperSearchHandler* impl,
mojo::Message* message) { … }
bool WallpaperSearchHandlerStubDispatch::AcceptWithResponder(
WallpaperSearchHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWallpaperSearchHandlerValidationInfo[] = …;
bool WallpaperSearchHandlerRequestValidator::Accept(mojo::Message* message) { … }
bool WallpaperSearchHandlerResponseValidator::Accept(mojo::Message* message) { … }
const char WallpaperSearchClient::Name_[] = …;
WallpaperSearchClient::IPCStableHashFunction WallpaperSearchClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WallpaperSearchClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WallpaperSearchClient::SetHistory_Sym::IPCStableHash() { … }
# endif
WallpaperSearchClientProxy::WallpaperSearchClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void WallpaperSearchClientProxy::SetHistory(
std::vector<WallpaperSearchResultPtr> in_history) { … }
bool WallpaperSearchClientStubDispatch::Accept(
WallpaperSearchClient* impl,
mojo::Message* message) { … }
bool WallpaperSearchClientStubDispatch::AcceptWithResponder(
WallpaperSearchClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWallpaperSearchClientValidationInfo[] = …;
bool WallpaperSearchClientRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::side_panel::customize_chrome::mojom::KeyLabel::DataView, ::side_panel::customize_chrome::mojom::KeyLabelPtr>::Read(
::side_panel::customize_chrome::mojom::KeyLabel::DataView input,
::side_panel::customize_chrome::mojom::KeyLabelPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::Group::DataView, ::side_panel::customize_chrome::mojom::GroupPtr>::Read(
::side_panel::customize_chrome::mojom::Group::DataView input,
::side_panel::customize_chrome::mojom::GroupPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::DescriptorB::DataView, ::side_panel::customize_chrome::mojom::DescriptorBPtr>::Read(
::side_panel::customize_chrome::mojom::DescriptorB::DataView input,
::side_panel::customize_chrome::mojom::DescriptorBPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::Descriptors::DataView, ::side_panel::customize_chrome::mojom::DescriptorsPtr>::Read(
::side_panel::customize_chrome::mojom::Descriptors::DataView input,
::side_panel::customize_chrome::mojom::DescriptorsPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::Inspiration::DataView, ::side_panel::customize_chrome::mojom::InspirationPtr>::Read(
::side_panel::customize_chrome::mojom::Inspiration::DataView input,
::side_panel::customize_chrome::mojom::InspirationPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::InspirationDescriptors::DataView, ::side_panel::customize_chrome::mojom::InspirationDescriptorsPtr>::Read(
::side_panel::customize_chrome::mojom::InspirationDescriptors::DataView input,
::side_panel::customize_chrome::mojom::InspirationDescriptorsPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::InspirationGroup::DataView, ::side_panel::customize_chrome::mojom::InspirationGroupPtr>::Read(
::side_panel::customize_chrome::mojom::InspirationGroup::DataView input,
::side_panel::customize_chrome::mojom::InspirationGroupPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::WallpaperSearchResult::DataView, ::side_panel::customize_chrome::mojom::WallpaperSearchResultPtr>::Read(
::side_panel::customize_chrome::mojom::WallpaperSearchResult::DataView input,
::side_panel::customize_chrome::mojom::WallpaperSearchResultPtr* output) { … }
bool StructTraits<::side_panel::customize_chrome::mojom::ResultDescriptors::DataView, ::side_panel::customize_chrome::mojom::ResultDescriptorsPtr>::Read(
::side_panel::customize_chrome::mojom::ResultDescriptors::DataView input,
::side_panel::customize_chrome::mojom::ResultDescriptorsPtr* output) { … }
bool UnionTraits<::side_panel::customize_chrome::mojom::DescriptorDValue::DataView, ::side_panel::customize_chrome::mojom::DescriptorDValuePtr>::Read(
::side_panel::customize_chrome::mojom::DescriptorDValue::DataView input,
::side_panel::customize_chrome::mojom::DescriptorDValuePtr* output) { … }
}
namespace side_panel::customize_chrome::mojom {
void WallpaperSearchHandlerFactoryInterceptorForTesting::CreateWallpaperSearchHandler(::mojo::PendingRemote<WallpaperSearchClient> client, ::mojo::PendingReceiver<WallpaperSearchHandler> handler) { … }
WallpaperSearchHandlerFactoryAsyncWaiter::WallpaperSearchHandlerFactoryAsyncWaiter(
WallpaperSearchHandlerFactory* proxy) : … { … }
WallpaperSearchHandlerFactoryAsyncWaiter::~WallpaperSearchHandlerFactoryAsyncWaiter() = default;
void WallpaperSearchHandlerInterceptorForTesting::GetDescriptors(GetDescriptorsCallback callback) { … }
void WallpaperSearchHandlerInterceptorForTesting::GetInspirations(GetInspirationsCallback callback) { … }
void WallpaperSearchHandlerInterceptorForTesting::GetWallpaperSearchResults(ResultDescriptorsPtr result_descriptors, GetWallpaperSearchResultsCallback callback) { … }
void WallpaperSearchHandlerInterceptorForTesting::SetResultRenderTime(const std::vector<::base::Token>& result_ids, double time) { … }
void WallpaperSearchHandlerInterceptorForTesting::SetBackgroundToHistoryImage(const ::base::Token& result_id, ResultDescriptorsPtr descriptors) { … }
void WallpaperSearchHandlerInterceptorForTesting::SetBackgroundToInspirationImage(const ::base::Token& id, const ::GURL& background_url) { … }
void WallpaperSearchHandlerInterceptorForTesting::SetBackgroundToWallpaperSearchResult(const ::base::Token& result_id, double time, ResultDescriptorsPtr descriptors) { … }
void WallpaperSearchHandlerInterceptorForTesting::UpdateHistory() { … }
void WallpaperSearchHandlerInterceptorForTesting::SetUserFeedback(UserFeedback selected_option) { … }
void WallpaperSearchHandlerInterceptorForTesting::OpenHelpArticle() { … }
void WallpaperSearchHandlerInterceptorForTesting::LaunchHatsSurvey() { … }
WallpaperSearchHandlerAsyncWaiter::WallpaperSearchHandlerAsyncWaiter(
WallpaperSearchHandler* proxy) : … { … }
WallpaperSearchHandlerAsyncWaiter::~WallpaperSearchHandlerAsyncWaiter() = default;
void WallpaperSearchHandlerAsyncWaiter::GetDescriptors(
DescriptorsPtr* out_descriptors) { … }
DescriptorsPtr WallpaperSearchHandlerAsyncWaiter::GetDescriptors(
) { … }
void WallpaperSearchHandlerAsyncWaiter::GetInspirations(
std::optional<std::vector<InspirationGroupPtr>>* out_inspirationGroups) { … }
std::optional<std::vector<InspirationGroupPtr>> WallpaperSearchHandlerAsyncWaiter::GetInspirations(
) { … }
void WallpaperSearchHandlerAsyncWaiter::GetWallpaperSearchResults(
ResultDescriptorsPtr result_descriptors, WallpaperSearchStatus* out_status, std::vector<WallpaperSearchResultPtr>* out_results) { … }
void WallpaperSearchClientInterceptorForTesting::SetHistory(std::vector<WallpaperSearchResultPtr> history) { … }
WallpaperSearchClientAsyncWaiter::WallpaperSearchClientAsyncWaiter(
WallpaperSearchClient* proxy) : … { … }
WallpaperSearchClientAsyncWaiter::~WallpaperSearchClientAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif