chromium/out/Default/gen/chrome/browser/cart/chrome_cart.mojom.cc

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

#include "chrome/browser/cart/chrome_cart.mojom-import-headers.h"
#include "chrome/browser/cart/chrome_cart.mojom-test-utils.h"


namespace chrome_cart::mojom {
MerchantCart::MerchantCart()
    :{}

MerchantCart::MerchantCart(
    const std::string& merchant_in,
    const ::GURL& cart_url_in,
    std::vector<::GURL> product_image_urls_in,
    const std::string& discount_text_in)
    :{}

MerchantCart::~MerchantCart() = default;

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CartHandler::GetMerchantCarts_Sym::IPCStableHash() {}
uint32_t CartHandler::GetCartFeatureEnabled_Sym::IPCStableHash() {}
uint32_t CartHandler::HideCartModule_Sym::IPCStableHash() {}
uint32_t CartHandler::RestoreHiddenCartModule_Sym::IPCStableHash() {}
uint32_t CartHandler::HideCart_Sym::IPCStableHash() {}
uint32_t CartHandler::RestoreHiddenCart_Sym::IPCStableHash() {}
uint32_t CartHandler::RemoveCart_Sym::IPCStableHash() {}
uint32_t CartHandler::RestoreRemovedCart_Sym::IPCStableHash() {}
uint32_t CartHandler::GetWarmWelcomeVisible_Sym::IPCStableHash() {}
uint32_t CartHandler::GetDiscountURL_Sym::IPCStableHash() {}
uint32_t CartHandler::GetDiscountConsentCardVisible_Sym::IPCStableHash() {}
uint32_t CartHandler::GetDiscountToggleVisible_Sym::IPCStableHash() {}
uint32_t CartHandler::OnDiscountConsentAcknowledged_Sym::IPCStableHash() {}
uint32_t CartHandler::OnDiscountConsentDismissed_Sym::IPCStableHash() {}
uint32_t CartHandler::OnDiscountConsentContinued_Sym::IPCStableHash() {}
uint32_t CartHandler::ShowNativeConsentDialog_Sym::IPCStableHash() {}
uint32_t CartHandler::GetDiscountEnabled_Sym::IPCStableHash() {}
uint32_t CartHandler::SetDiscountEnabled_Sym::IPCStableHash() {}
uint32_t CartHandler::PrepareForNavigation_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class CartHandler_GetMerchantCarts_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_GetCartFeatureEnabled_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_HideCart_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_RestoreHiddenCart_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_RemoveCart_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_RestoreRemovedCart_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_GetWarmWelcomeVisible_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_GetDiscountURL_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_GetDiscountConsentCardVisible_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_GetDiscountToggleVisible_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_ShowNativeConsentDialog_ForwardToCallback
    : public mojo::MessageReceiver {};

class CartHandler_GetDiscountEnabled_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void CartHandlerProxy::GetMerchantCarts(
    GetMerchantCartsCallback callback) {}

void CartHandlerProxy::GetCartFeatureEnabled(
    GetCartFeatureEnabledCallback callback) {}

void CartHandlerProxy::HideCartModule(
    ) {}

void CartHandlerProxy::RestoreHiddenCartModule(
    ) {}

void CartHandlerProxy::HideCart(
    const ::GURL& in_cart_url, HideCartCallback callback) {}

void CartHandlerProxy::RestoreHiddenCart(
    const ::GURL& in_cart_url, RestoreHiddenCartCallback callback) {}

void CartHandlerProxy::RemoveCart(
    const ::GURL& in_cart_url, RemoveCartCallback callback) {}

void CartHandlerProxy::RestoreRemovedCart(
    const ::GURL& in_cart_url, RestoreRemovedCartCallback callback) {}

void CartHandlerProxy::GetWarmWelcomeVisible(
    GetWarmWelcomeVisibleCallback callback) {}

void CartHandlerProxy::GetDiscountURL(
    const ::GURL& in_cart_url, GetDiscountURLCallback callback) {}

void CartHandlerProxy::GetDiscountConsentCardVisible(
    GetDiscountConsentCardVisibleCallback callback) {}

void CartHandlerProxy::GetDiscountToggleVisible(
    GetDiscountToggleVisibleCallback callback) {}

void CartHandlerProxy::OnDiscountConsentAcknowledged(
    bool in_accept) {}

void CartHandlerProxy::OnDiscountConsentDismissed(
    ) {}

void CartHandlerProxy::OnDiscountConsentContinued(
    ) {}

void CartHandlerProxy::ShowNativeConsentDialog(
    ShowNativeConsentDialogCallback callback) {}

void CartHandlerProxy::GetDiscountEnabled(
    GetDiscountEnabledCallback callback) {}

void CartHandlerProxy::SetDiscountEnabled(
    bool in_enabled) {}

void CartHandlerProxy::PrepareForNavigation(
    const ::GURL& in_cart_url, bool in_is_navigating) {}
class CartHandler_GetMerchantCarts_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_GetMerchantCarts_ProxyToResponder::Run(
    std::vector<MerchantCartPtr> in_carts) {}
class CartHandler_GetCartFeatureEnabled_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_GetCartFeatureEnabled_ProxyToResponder::Run(
    bool in_enabled) {}
class CartHandler_HideCart_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_HideCart_ProxyToResponder::Run(
    bool in_success) {}
class CartHandler_RestoreHiddenCart_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_RestoreHiddenCart_ProxyToResponder::Run(
    bool in_success) {}
class CartHandler_RemoveCart_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_RemoveCart_ProxyToResponder::Run(
    bool in_success) {}
class CartHandler_RestoreRemovedCart_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_RestoreRemovedCart_ProxyToResponder::Run(
    bool in_success) {}
class CartHandler_GetWarmWelcomeVisible_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_GetWarmWelcomeVisible_ProxyToResponder::Run(
    bool in_welcome_visible) {}
class CartHandler_GetDiscountURL_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_GetDiscountURL_ProxyToResponder::Run(
    const ::GURL& in_discount_url) {}
class CartHandler_GetDiscountConsentCardVisible_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_GetDiscountConsentCardVisible_ProxyToResponder::Run(
    bool in_consent_visible) {}
class CartHandler_GetDiscountToggleVisible_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_GetDiscountToggleVisible_ProxyToResponder::Run(
    bool in_toggle_visible) {}
class CartHandler_ShowNativeConsentDialog_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_ShowNativeConsentDialog_ProxyToResponder::Run(
    ConsentStatus in_consent_status) {}
class CartHandler_GetDiscountEnabled_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CartHandler_GetDiscountEnabled_ProxyToResponder::Run(
    bool in_enabled) {}

// static
bool CartHandlerStubDispatch::Accept(
    CartHandler* impl,
    mojo::Message* message) {}

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

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

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


}  // chrome_cart::mojom


namespace mojo {


// static
bool StructTraits<::chrome_cart::mojom::MerchantCart::DataView, ::chrome_cart::mojom::MerchantCartPtr>::Read(
    ::chrome_cart::mojom::MerchantCart::DataView input,
    ::chrome_cart::mojom::MerchantCartPtr* 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 chrome_cart::mojom {


void CartHandlerInterceptorForTesting::GetMerchantCarts(GetMerchantCartsCallback callback) {}
void CartHandlerInterceptorForTesting::GetCartFeatureEnabled(GetCartFeatureEnabledCallback callback) {}
void CartHandlerInterceptorForTesting::HideCartModule() {}
void CartHandlerInterceptorForTesting::RestoreHiddenCartModule() {}
void CartHandlerInterceptorForTesting::HideCart(const ::GURL& cart_url, HideCartCallback callback) {}
void CartHandlerInterceptorForTesting::RestoreHiddenCart(const ::GURL& cart_url, RestoreHiddenCartCallback callback) {}
void CartHandlerInterceptorForTesting::RemoveCart(const ::GURL& cart_url, RemoveCartCallback callback) {}
void CartHandlerInterceptorForTesting::RestoreRemovedCart(const ::GURL& cart_url, RestoreRemovedCartCallback callback) {}
void CartHandlerInterceptorForTesting::GetWarmWelcomeVisible(GetWarmWelcomeVisibleCallback callback) {}
void CartHandlerInterceptorForTesting::GetDiscountURL(const ::GURL& cart_url, GetDiscountURLCallback callback) {}
void CartHandlerInterceptorForTesting::GetDiscountConsentCardVisible(GetDiscountConsentCardVisibleCallback callback) {}
void CartHandlerInterceptorForTesting::GetDiscountToggleVisible(GetDiscountToggleVisibleCallback callback) {}
void CartHandlerInterceptorForTesting::OnDiscountConsentAcknowledged(bool accept) {}
void CartHandlerInterceptorForTesting::OnDiscountConsentDismissed() {}
void CartHandlerInterceptorForTesting::OnDiscountConsentContinued() {}
void CartHandlerInterceptorForTesting::ShowNativeConsentDialog(ShowNativeConsentDialogCallback callback) {}
void CartHandlerInterceptorForTesting::GetDiscountEnabled(GetDiscountEnabledCallback callback) {}
void CartHandlerInterceptorForTesting::SetDiscountEnabled(bool enabled) {}
void CartHandlerInterceptorForTesting::PrepareForNavigation(const ::GURL& cart_url, bool is_navigating) {}
CartHandlerAsyncWaiter::CartHandlerAsyncWaiter(
    CartHandler* proxy) :{}

CartHandlerAsyncWaiter::~CartHandlerAsyncWaiter() = default;

void CartHandlerAsyncWaiter::GetMerchantCarts(
    std::vector<MerchantCartPtr>* out_carts) {}

std::vector<MerchantCartPtr> CartHandlerAsyncWaiter::GetMerchantCarts(
    ) {}

void CartHandlerAsyncWaiter::GetCartFeatureEnabled(
    bool* out_enabled) {}

bool CartHandlerAsyncWaiter::GetCartFeatureEnabled(
    ) {}

void CartHandlerAsyncWaiter::HideCart(
    const ::GURL& cart_url, bool* out_success) {}

bool CartHandlerAsyncWaiter::HideCart(
    const ::GURL& cart_url) {}

void CartHandlerAsyncWaiter::RestoreHiddenCart(
    const ::GURL& cart_url, bool* out_success) {}

bool CartHandlerAsyncWaiter::RestoreHiddenCart(
    const ::GURL& cart_url) {}

void CartHandlerAsyncWaiter::RemoveCart(
    const ::GURL& cart_url, bool* out_success) {}

bool CartHandlerAsyncWaiter::RemoveCart(
    const ::GURL& cart_url) {}

void CartHandlerAsyncWaiter::RestoreRemovedCart(
    const ::GURL& cart_url, bool* out_success) {}

bool CartHandlerAsyncWaiter::RestoreRemovedCart(
    const ::GURL& cart_url) {}

void CartHandlerAsyncWaiter::GetWarmWelcomeVisible(
    bool* out_welcome_visible) {}

bool CartHandlerAsyncWaiter::GetWarmWelcomeVisible(
    ) {}

void CartHandlerAsyncWaiter::GetDiscountURL(
    const ::GURL& cart_url, ::GURL* out_discount_url) {}

::GURL CartHandlerAsyncWaiter::GetDiscountURL(
    const ::GURL& cart_url) {}

void CartHandlerAsyncWaiter::GetDiscountConsentCardVisible(
    bool* out_consent_visible) {}

bool CartHandlerAsyncWaiter::GetDiscountConsentCardVisible(
    ) {}

void CartHandlerAsyncWaiter::GetDiscountToggleVisible(
    bool* out_toggle_visible) {}

bool CartHandlerAsyncWaiter::GetDiscountToggleVisible(
    ) {}

void CartHandlerAsyncWaiter::ShowNativeConsentDialog(
    ConsentStatus* out_consent_status) {}

ConsentStatus CartHandlerAsyncWaiter::ShowNativeConsentDialog(
    ) {}

void CartHandlerAsyncWaiter::GetDiscountEnabled(
    bool* out_enabled) {}

bool CartHandlerAsyncWaiter::GetDiscountEnabled(
    ) {}






}  // chrome_cart::mojom


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