#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "chrome/browser/ui/webui/side_panel/bookmarks/bookmarks.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/bookmarks/bookmarks.mojom-params-data.h"
#include "chrome/browser/ui/webui/side_panel/bookmarks/bookmarks.mojom-shared-message-ids.h"
#include "chrome/browser/ui/webui/side_panel/bookmarks/bookmarks.mojom-import-headers.h"
#include "chrome/browser/ui/webui/side_panel/bookmarks/bookmarks.mojom-test-utils.h"
namespace side_panel::mojom {
const char BookmarksPageHandlerFactory::Name_[] = …;
BookmarksPageHandlerFactory::IPCStableHashFunction BookmarksPageHandlerFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* BookmarksPageHandlerFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t BookmarksPageHandlerFactory::CreateBookmarksPageHandler_Sym::IPCStableHash() { … }
# endif
BookmarksPageHandlerFactoryProxy::BookmarksPageHandlerFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void BookmarksPageHandlerFactoryProxy::CreateBookmarksPageHandler(
::mojo::PendingReceiver<BookmarksPageHandler> in_handler) { … }
bool BookmarksPageHandlerFactoryStubDispatch::Accept(
BookmarksPageHandlerFactory* impl,
mojo::Message* message) { … }
bool BookmarksPageHandlerFactoryStubDispatch::AcceptWithResponder(
BookmarksPageHandlerFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kBookmarksPageHandlerFactoryValidationInfo[] = …;
bool BookmarksPageHandlerFactoryRequestValidator::Accept(mojo::Message* message) { … }
const char BookmarksPageHandler::Name_[] = …;
BookmarksPageHandler::IPCStableHashFunction BookmarksPageHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* BookmarksPageHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t BookmarksPageHandler::BookmarkCurrentTabInFolder_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ExecuteOpenInNewTabCommand_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ExecuteOpenInNewWindowCommand_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ExecuteOpenInIncognitoWindowCommand_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ExecuteOpenInNewTabGroupCommand_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ExecuteAddToBookmarksBarCommand_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ExecuteRemoveFromBookmarksBarCommand_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ExecuteDeleteCommand_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::OpenBookmark_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::SetSortOrder_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::SetViewType_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ShowContextMenu_Sym::IPCStableHash() { … }
uint32_t BookmarksPageHandler::ShowUI_Sym::IPCStableHash() { … }
# endif
BookmarksPageHandlerProxy::BookmarksPageHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void BookmarksPageHandlerProxy::BookmarkCurrentTabInFolder(
int64_t in_folder_id) { … }
void BookmarksPageHandlerProxy::ExecuteOpenInNewTabCommand(
const std::vector<int64_t>& in_node_ids, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::ExecuteOpenInNewWindowCommand(
const std::vector<int64_t>& in_node_ids, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::ExecuteOpenInIncognitoWindowCommand(
const std::vector<int64_t>& in_node_ids, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::ExecuteOpenInNewTabGroupCommand(
const std::vector<int64_t>& in_node_ids, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::ExecuteAddToBookmarksBarCommand(
int64_t in_node_id, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::ExecuteRemoveFromBookmarksBarCommand(
int64_t in_node_id, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::ExecuteDeleteCommand(
const std::vector<int64_t>& in_node_ids, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::OpenBookmark(
int64_t in_node_id, int32_t in_parent_folder_depth, ::ui::mojom::ClickModifiersPtr in_click_modifiers, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::SetSortOrder(
SortOrder in_sort_order) { … }
void BookmarksPageHandlerProxy::SetViewType(
ViewType in_view_type) { … }
void BookmarksPageHandlerProxy::ShowContextMenu(
const std::string& in_id, const ::gfx::Point& in_point, ActionSource in_source) { … }
void BookmarksPageHandlerProxy::ShowUI(
) { … }
bool BookmarksPageHandlerStubDispatch::Accept(
BookmarksPageHandler* impl,
mojo::Message* message) { … }
bool BookmarksPageHandlerStubDispatch::AcceptWithResponder(
BookmarksPageHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kBookmarksPageHandlerValidationInfo[] = …;
bool BookmarksPageHandlerRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace side_panel::mojom {
void BookmarksPageHandlerFactoryInterceptorForTesting::CreateBookmarksPageHandler(::mojo::PendingReceiver<BookmarksPageHandler> handler) { … }
BookmarksPageHandlerFactoryAsyncWaiter::BookmarksPageHandlerFactoryAsyncWaiter(
BookmarksPageHandlerFactory* proxy) : … { … }
BookmarksPageHandlerFactoryAsyncWaiter::~BookmarksPageHandlerFactoryAsyncWaiter() = default;
void BookmarksPageHandlerInterceptorForTesting::BookmarkCurrentTabInFolder(int64_t folder_id) { … }
void BookmarksPageHandlerInterceptorForTesting::ExecuteOpenInNewTabCommand(const std::vector<int64_t>& node_ids, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::ExecuteOpenInNewWindowCommand(const std::vector<int64_t>& node_ids, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::ExecuteOpenInIncognitoWindowCommand(const std::vector<int64_t>& node_ids, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::ExecuteOpenInNewTabGroupCommand(const std::vector<int64_t>& node_ids, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::ExecuteAddToBookmarksBarCommand(int64_t node_id, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::ExecuteRemoveFromBookmarksBarCommand(int64_t node_id, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::ExecuteDeleteCommand(const std::vector<int64_t>& node_ids, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::OpenBookmark(int64_t node_id, int32_t parent_folder_depth, ::ui::mojom::ClickModifiersPtr click_modifiers, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::SetSortOrder(SortOrder sort_order) { … }
void BookmarksPageHandlerInterceptorForTesting::SetViewType(ViewType view_type) { … }
void BookmarksPageHandlerInterceptorForTesting::ShowContextMenu(const std::string& id, const ::gfx::Point& point, ActionSource source) { … }
void BookmarksPageHandlerInterceptorForTesting::ShowUI() { … }
BookmarksPageHandlerAsyncWaiter::BookmarksPageHandlerAsyncWaiter(
BookmarksPageHandler* proxy) : … { … }
BookmarksPageHandlerAsyncWaiter::~BookmarksPageHandlerAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif