chromium/out/Default/gen/third_party/blink/public/mojom/content_index/content_index.mojom.cc

// third_party/blink/public/mojom/content_index/content_index.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 "third_party/blink/public/mojom/content_index/content_index.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 "third_party/blink/public/mojom/content_index/content_index.mojom-params-data.h"
#include "third_party/blink/public/mojom/content_index/content_index.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/content_index/content_index.mojom-import-headers.h"
#include "third_party/blink/public/mojom/content_index/content_index.mojom-test-utils.h"


namespace blink::mojom {
ContentIconDefinition::ContentIconDefinition()
    :{}

ContentIconDefinition::ContentIconDefinition(
    const std::string& src_in,
    const std::optional<std::string>& sizes_in,
    const std::optional<std::string>& type_in)
    :{}

ContentIconDefinition::~ContentIconDefinition() = default;

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

bool ContentIconDefinition::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
ContentDescription::ContentDescription()
    :{}

ContentDescription::ContentDescription(
    const std::string& id_in,
    const std::string& title_in,
    const std::string& description_in,
    ContentCategory category_in,
    std::vector<ContentIconDefinitionPtr> icons_in,
    const std::string& launch_url_in)
    :{}

ContentDescription::~ContentDescription() = default;

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

bool ContentDescription::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char ContentIndexService::Name_[] =;
constexpr int32_t ContentIndexService::kMaxIconResolution;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ContentIndexService::GetIconSizes_Sym::IPCStableHash() {}
uint32_t ContentIndexService::CheckOfflineCapability_Sym::IPCStableHash() {}
uint32_t ContentIndexService::Add_Sym::IPCStableHash() {}
uint32_t ContentIndexService::Delete_Sym::IPCStableHash() {}
uint32_t ContentIndexService::GetDescriptions_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class ContentIndexService_GetIconSizes_ForwardToCallback
    : public mojo::MessageReceiver {};

class ContentIndexService_CheckOfflineCapability_ForwardToCallback
    : public mojo::MessageReceiver {};

class ContentIndexService_Add_ForwardToCallback
    : public mojo::MessageReceiver {};

class ContentIndexService_Delete_ForwardToCallback
    : public mojo::MessageReceiver {};

class ContentIndexService_GetDescriptions_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void ContentIndexServiceProxy::GetIconSizes(
    ContentCategory in_category, GetIconSizesCallback callback) {}

void ContentIndexServiceProxy::CheckOfflineCapability(
    int64_t in_service_worker_registration_id, const ::GURL& in_launch_url, CheckOfflineCapabilityCallback callback) {}

void ContentIndexServiceProxy::Add(
    int64_t in_service_worker_registration_id, ContentDescriptionPtr in_description, const std::vector<::SkBitmap>& in_icon, const ::GURL& in_launchUrl, AddCallback callback) {}

void ContentIndexServiceProxy::Delete(
    int64_t in_service_worker_registration_id, const std::string& in_id, DeleteCallback callback) {}

void ContentIndexServiceProxy::GetDescriptions(
    int64_t in_service_worker_registration_id, GetDescriptionsCallback callback) {}
class ContentIndexService_GetIconSizes_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ContentIndexService_GetIconSizes_ProxyToResponder::Run(
    const std::vector<::gfx::Size>& in_icon_sizes) {}
class ContentIndexService_CheckOfflineCapability_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ContentIndexService_CheckOfflineCapability_ProxyToResponder::Run(
    bool in_is_offline_capable) {}
class ContentIndexService_Add_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ContentIndexService_Add_ProxyToResponder::Run(
    ContentIndexError in_error) {}
class ContentIndexService_Delete_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ContentIndexService_Delete_ProxyToResponder::Run(
    ContentIndexError in_error) {}
class ContentIndexService_GetDescriptions_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ContentIndexService_GetDescriptions_ProxyToResponder::Run(
    ContentIndexError in_error, std::vector<ContentDescriptionPtr> in_descriptions) {}

// static
bool ContentIndexServiceStubDispatch::Accept(
    ContentIndexService* impl,
    mojo::Message* message) {}

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

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

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


}  // blink::mojom


namespace mojo {


// static
bool StructTraits<::blink::mojom::ContentIconDefinition::DataView, ::blink::mojom::ContentIconDefinitionPtr>::Read(
    ::blink::mojom::ContentIconDefinition::DataView input,
    ::blink::mojom::ContentIconDefinitionPtr* output) {}


// static
bool StructTraits<::blink::mojom::ContentDescription::DataView, ::blink::mojom::ContentDescriptionPtr>::Read(
    ::blink::mojom::ContentDescription::DataView input,
    ::blink::mojom::ContentDescriptionPtr* 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 blink::mojom {


void ContentIndexServiceInterceptorForTesting::GetIconSizes(ContentCategory category, GetIconSizesCallback callback) {}
void ContentIndexServiceInterceptorForTesting::CheckOfflineCapability(int64_t service_worker_registration_id, const ::GURL& launch_url, CheckOfflineCapabilityCallback callback) {}
void ContentIndexServiceInterceptorForTesting::Add(int64_t service_worker_registration_id, ContentDescriptionPtr description, const std::vector<::SkBitmap>& icon, const ::GURL& launchUrl, AddCallback callback) {}
void ContentIndexServiceInterceptorForTesting::Delete(int64_t service_worker_registration_id, const std::string& id, DeleteCallback callback) {}
void ContentIndexServiceInterceptorForTesting::GetDescriptions(int64_t service_worker_registration_id, GetDescriptionsCallback callback) {}
ContentIndexServiceAsyncWaiter::ContentIndexServiceAsyncWaiter(
    ContentIndexService* proxy) :{}

ContentIndexServiceAsyncWaiter::~ContentIndexServiceAsyncWaiter() = default;

void ContentIndexServiceAsyncWaiter::GetIconSizes(
    ContentCategory category, std::vector<::gfx::Size>* out_icon_sizes) {}

std::vector<::gfx::Size> ContentIndexServiceAsyncWaiter::GetIconSizes(
    ContentCategory category) {}

void ContentIndexServiceAsyncWaiter::CheckOfflineCapability(
    int64_t service_worker_registration_id, const ::GURL& launch_url, bool* out_is_offline_capable) {}

bool ContentIndexServiceAsyncWaiter::CheckOfflineCapability(
    int64_t service_worker_registration_id, const ::GURL& launch_url) {}

void ContentIndexServiceAsyncWaiter::Add(
    int64_t service_worker_registration_id, ContentDescriptionPtr description, const std::vector<::SkBitmap>& icon, const ::GURL& launchUrl, ContentIndexError* out_error) {}

ContentIndexError ContentIndexServiceAsyncWaiter::Add(
    int64_t service_worker_registration_id, ContentDescriptionPtr description, const std::vector<::SkBitmap>& icon, const ::GURL& launchUrl) {}

void ContentIndexServiceAsyncWaiter::Delete(
    int64_t service_worker_registration_id, const std::string& id, ContentIndexError* out_error) {}

ContentIndexError ContentIndexServiceAsyncWaiter::Delete(
    int64_t service_worker_registration_id, const std::string& id) {}

void ContentIndexServiceAsyncWaiter::GetDescriptions(
    int64_t service_worker_registration_id, ContentIndexError* out_error, std::vector<ContentDescriptionPtr>* out_descriptions) {}








}  // blink::mojom


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