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

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

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


namespace downloads::mojom {
Data::Data()
    :{}

Data::Data(
    bool file_externally_removed_in,
    bool is_dangerous_in,
    bool is_insecure_in,
    bool is_reviewable_in,
    bool otr_in,
    bool resume_in,
    bool retry_in,
    int32_t percent_in,
    int32_t started_in,
    int64_t total_in,
    const std::string& by_ext_id_in,
    const std::string& by_ext_name_in,
    DangerType danger_type_in,
    TailoredWarningType tailored_warning_type_in,
    const std::string& date_string_in,
    const std::string& file_name_in,
    const std::string& file_path_in,
    const std::string& file_url_in,
    const std::string& account_email_in,
    const std::string& id_in,
    const std::string& last_reason_text_in,
    const std::string& progress_status_text_in,
    const std::string& show_in_folder_text_in,
    const std::string& since_string_in,
    State state_in,
    const std::optional<::GURL>& referrer_url_in,
    const ::std::u16string& display_referrer_url_in,
    const std::optional<::GURL>& url_in,
    const ::std::u16string& display_url_in,
    SafeBrowsingState safe_browsing_state_in,
    bool has_safe_browsing_verdict_in)
    :{}

Data::~Data() = default;

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

bool Data::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::GetDownloads_Sym::IPCStableHash() {}
uint32_t PageHandler::OpenFileRequiringGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::Drag_Sym::IPCStableHash() {}
uint32_t PageHandler::SaveSuspiciousRequiringGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::RecordOpenBypassWarningDialog_Sym::IPCStableHash() {}
uint32_t PageHandler::RecordOpenBypassWarningInterstitial_Sym::IPCStableHash() {}
uint32_t PageHandler::RecordOpenSurveyOnDangerousInterstitial_Sym::IPCStableHash() {}
uint32_t PageHandler::SaveDangerousFromDialogRequiringGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::SaveDangerousFromInterstitialNeedGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::RecordCancelBypassWarningDialog_Sym::IPCStableHash() {}
uint32_t PageHandler::RecordCancelBypassWarningInterstitial_Sym::IPCStableHash() {}
uint32_t PageHandler::DiscardDangerous_Sym::IPCStableHash() {}
uint32_t PageHandler::RetryDownload_Sym::IPCStableHash() {}
uint32_t PageHandler::Show_Sym::IPCStableHash() {}
uint32_t PageHandler::Pause_Sym::IPCStableHash() {}
uint32_t PageHandler::Resume_Sym::IPCStableHash() {}
uint32_t PageHandler::Remove_Sym::IPCStableHash() {}
uint32_t PageHandler::Undo_Sym::IPCStableHash() {}
uint32_t PageHandler::Cancel_Sym::IPCStableHash() {}
uint32_t PageHandler::ClearAll_Sym::IPCStableHash() {}
uint32_t PageHandler::OpenDownloadsFolderRequiringGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::OpenEsbSettings_Sym::IPCStableHash() {}
uint32_t PageHandler::LogEsbPromotionRowViewed_Sym::IPCStableHash() {}
uint32_t PageHandler::OpenDuringScanningRequiringGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::ReviewDangerousRequiringGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::DeepScan_Sym::IPCStableHash() {}
uint32_t PageHandler::BypassDeepScanRequiringGesture_Sym::IPCStableHash() {}
uint32_t PageHandler::IsEligibleForEsbPromo_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PageHandler_IsEligibleForEsbPromo_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void PageHandlerProxy::GetDownloads(
    const std::vector<std::string>& in_search_terms) {}

void PageHandlerProxy::OpenFileRequiringGesture(
    const std::string& in_id) {}

void PageHandlerProxy::Drag(
    const std::string& in_id) {}

void PageHandlerProxy::SaveSuspiciousRequiringGesture(
    const std::string& in_id) {}

void PageHandlerProxy::RecordOpenBypassWarningDialog(
    const std::string& in_id) {}

void PageHandlerProxy::RecordOpenBypassWarningInterstitial(
    const std::string& in_id) {}

void PageHandlerProxy::RecordOpenSurveyOnDangerousInterstitial(
    const std::string& in_id) {}

void PageHandlerProxy::SaveDangerousFromDialogRequiringGesture(
    const std::string& in_id) {}

void PageHandlerProxy::SaveDangerousFromInterstitialNeedGesture(
    const std::string& in_id, DangerousDownloadInterstitialSurveyOptions in_response) {}

void PageHandlerProxy::RecordCancelBypassWarningDialog(
    const std::string& in_id) {}

void PageHandlerProxy::RecordCancelBypassWarningInterstitial(
    const std::string& in_id) {}

void PageHandlerProxy::DiscardDangerous(
    const std::string& in_id) {}

void PageHandlerProxy::RetryDownload(
    const std::string& in_id) {}

void PageHandlerProxy::Show(
    const std::string& in_id) {}

void PageHandlerProxy::Pause(
    const std::string& in_id) {}

void PageHandlerProxy::Resume(
    const std::string& in_id) {}

void PageHandlerProxy::Remove(
    const std::string& in_id) {}

void PageHandlerProxy::Undo(
    ) {}

void PageHandlerProxy::Cancel(
    const std::string& in_id) {}

void PageHandlerProxy::ClearAll(
    ) {}

void PageHandlerProxy::OpenDownloadsFolderRequiringGesture(
    ) {}

void PageHandlerProxy::OpenEsbSettings(
    ) {}

void PageHandlerProxy::LogEsbPromotionRowViewed(
    ) {}

void PageHandlerProxy::OpenDuringScanningRequiringGesture(
    const std::string& in_id) {}

void PageHandlerProxy::ReviewDangerousRequiringGesture(
    const std::string& in_id) {}

void PageHandlerProxy::DeepScan(
    const std::string& in_id) {}

void PageHandlerProxy::BypassDeepScanRequiringGesture(
    const std::string& in_id) {}

void PageHandlerProxy::IsEligibleForEsbPromo(
    IsEligibleForEsbPromoCallback callback) {}
class PageHandler_IsEligibleForEsbPromo_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PageHandler_IsEligibleForEsbPromo_ProxyToResponder::Run(
    bool in_result) {}

// 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::RemoveItem_Sym::IPCStableHash() {}
uint32_t Page::UpdateItem_Sym::IPCStableHash() {}
uint32_t Page::InsertItems_Sym::IPCStableHash() {}
uint32_t Page::ClearAll_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void PageProxy::RemoveItem(
    int32_t in_index) {}

void PageProxy::UpdateItem(
    int32_t in_index, DataPtr in_data) {}

void PageProxy::InsertItems(
    int32_t in_index, std::vector<DataPtr> in_items) {}

void PageProxy::ClearAll(
    ) {}

// 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) {}



}  // downloads::mojom


namespace mojo {


// static
bool StructTraits<::downloads::mojom::Data::DataView, ::downloads::mojom::DataPtr>::Read(
    ::downloads::mojom::Data::DataView input,
    ::downloads::mojom::DataPtr* 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 downloads::mojom {


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

PageHandlerFactoryAsyncWaiter::~PageHandlerFactoryAsyncWaiter() = default;




void PageHandlerInterceptorForTesting::GetDownloads(const std::vector<std::string>& search_terms) {}
void PageHandlerInterceptorForTesting::OpenFileRequiringGesture(const std::string& id) {}
void PageHandlerInterceptorForTesting::Drag(const std::string& id) {}
void PageHandlerInterceptorForTesting::SaveSuspiciousRequiringGesture(const std::string& id) {}
void PageHandlerInterceptorForTesting::RecordOpenBypassWarningDialog(const std::string& id) {}
void PageHandlerInterceptorForTesting::RecordOpenBypassWarningInterstitial(const std::string& id) {}
void PageHandlerInterceptorForTesting::RecordOpenSurveyOnDangerousInterstitial(const std::string& id) {}
void PageHandlerInterceptorForTesting::SaveDangerousFromDialogRequiringGesture(const std::string& id) {}
void PageHandlerInterceptorForTesting::SaveDangerousFromInterstitialNeedGesture(const std::string& id, DangerousDownloadInterstitialSurveyOptions response) {}
void PageHandlerInterceptorForTesting::RecordCancelBypassWarningDialog(const std::string& id) {}
void PageHandlerInterceptorForTesting::RecordCancelBypassWarningInterstitial(const std::string& id) {}
void PageHandlerInterceptorForTesting::DiscardDangerous(const std::string& id) {}
void PageHandlerInterceptorForTesting::RetryDownload(const std::string& id) {}
void PageHandlerInterceptorForTesting::Show(const std::string& id) {}
void PageHandlerInterceptorForTesting::Pause(const std::string& id) {}
void PageHandlerInterceptorForTesting::Resume(const std::string& id) {}
void PageHandlerInterceptorForTesting::Remove(const std::string& id) {}
void PageHandlerInterceptorForTesting::Undo() {}
void PageHandlerInterceptorForTesting::Cancel(const std::string& id) {}
void PageHandlerInterceptorForTesting::ClearAll() {}
void PageHandlerInterceptorForTesting::OpenDownloadsFolderRequiringGesture() {}
void PageHandlerInterceptorForTesting::OpenEsbSettings() {}
void PageHandlerInterceptorForTesting::LogEsbPromotionRowViewed() {}
void PageHandlerInterceptorForTesting::OpenDuringScanningRequiringGesture(const std::string& id) {}
void PageHandlerInterceptorForTesting::ReviewDangerousRequiringGesture(const std::string& id) {}
void PageHandlerInterceptorForTesting::DeepScan(const std::string& id) {}
void PageHandlerInterceptorForTesting::BypassDeepScanRequiringGesture(const std::string& id) {}
void PageHandlerInterceptorForTesting::IsEligibleForEsbPromo(IsEligibleForEsbPromoCallback callback) {}
PageHandlerAsyncWaiter::PageHandlerAsyncWaiter(
    PageHandler* proxy) :{}

PageHandlerAsyncWaiter::~PageHandlerAsyncWaiter() = default;

void PageHandlerAsyncWaiter::IsEligibleForEsbPromo(
    bool* out_result) {}

bool PageHandlerAsyncWaiter::IsEligibleForEsbPromo(
    ) {}




void PageInterceptorForTesting::RemoveItem(int32_t index) {}
void PageInterceptorForTesting::UpdateItem(int32_t index, DataPtr data) {}
void PageInterceptorForTesting::InsertItems(int32_t index, std::vector<DataPtr> items) {}
void PageInterceptorForTesting::ClearAll() {}
PageAsyncWaiter::PageAsyncWaiter(
    Page* proxy) :{}

PageAsyncWaiter::~PageAsyncWaiter() = default;






}  // downloads::mojom


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