chromium/out/Default/gen/components/services/unzip/public/mojom/unzipper.mojom.cc

// components/services/unzip/public/mojom/unzipper.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 "components/services/unzip/public/mojom/unzipper.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 "components/services/unzip/public/mojom/unzipper.mojom-params-data.h"
#include "components/services/unzip/public/mojom/unzipper.mojom-shared-message-ids.h"

#include "components/services/unzip/public/mojom/unzipper.mojom-import-headers.h"
#include "components/services/unzip/public/mojom/unzipper.mojom-test-utils.h"


namespace unzip::mojom {
UnzipOptions::UnzipOptions()
    :{}

UnzipOptions::UnzipOptions(
    const std::string& encoding_in,
    const std::string& password_in)
    :{}

UnzipOptions::~UnzipOptions() = default;
size_t UnzipOptions::Hash(size_t seed) const {}

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

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

Info::Info(
    bool size_is_valid_in,
    uint64_t size_in,
    bool is_encrypted_in,
    bool uses_aes_encryption_in)
    :{}

Info::~Info() = default;
size_t Info::Hash(size_t seed) const {}

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t UnzipFilter::ShouldUnzipFile_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)
bool UnzipFilter::ShouldUnzipFile(const ::base::FilePath& path, bool* out_result) {}
class UnzipFilter_ShouldUnzipFile_HandleSyncResponse
    : public mojo::MessageReceiver {};

class UnzipFilter_ShouldUnzipFile_ForwardToCallback
    : public mojo::MessageReceiver {};

UnzipFilterProxy::UnzipFilterProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}
bool UnzipFilterProxy::ShouldUnzipFile(
    const ::base::FilePath& param_path, bool* out_param_result) {}

void UnzipFilterProxy::ShouldUnzipFile(
    const ::base::FilePath& in_path, ShouldUnzipFileCallback callback) {}
class UnzipFilter_ShouldUnzipFile_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void UnzipFilter_ShouldUnzipFile_ProxyToResponder::Run(
    bool in_result) {}
bool UnzipFilter_ShouldUnzipFile_HandleSyncResponse::Accept(
    mojo::Message* message) {}

// static
bool UnzipFilterStubDispatch::Accept(
    UnzipFilter* impl,
    mojo::Message* message) {}

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

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

bool UnzipFilterResponseValidator::Accept(mojo::Message* message) {}
const char UnzipListener::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t UnzipListener::OnProgress_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void UnzipListenerProxy::OnProgress(
    uint64_t in_bytes) {}

// static
bool UnzipListenerStubDispatch::Accept(
    UnzipListener* impl,
    mojo::Message* message) {}

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

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

const char Unzipper::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Unzipper::Unzip_Sym::IPCStableHash() {}
uint32_t Unzipper::DetectEncoding_Sym::IPCStableHash() {}
uint32_t Unzipper::GetExtractedInfo_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class Unzipper_Unzip_ForwardToCallback
    : public mojo::MessageReceiver {};

class Unzipper_DetectEncoding_ForwardToCallback
    : public mojo::MessageReceiver {};

class Unzipper_GetExtractedInfo_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void UnzipperProxy::Unzip(
    ::base::File in_zip_file, ::mojo::PendingRemote<::storage::mojom::Directory> in_output_dir, UnzipOptionsPtr in_options, ::mojo::PendingRemote<UnzipFilter> in_filter, ::mojo::PendingRemote<UnzipListener> in_listener, UnzipCallback callback) {}

void UnzipperProxy::DetectEncoding(
    ::base::File in_zip_file, DetectEncodingCallback callback) {}

void UnzipperProxy::GetExtractedInfo(
    ::base::File in_zip_file, GetExtractedInfoCallback callback) {}
class Unzipper_Unzip_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void Unzipper_Unzip_ProxyToResponder::Run(
    bool in_result) {}
class Unzipper_DetectEncoding_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void Unzipper_DetectEncoding_ProxyToResponder::Run(
    int32_t in_encoding) {}
class Unzipper_GetExtractedInfo_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void Unzipper_GetExtractedInfo_ProxyToResponder::Run(
    InfoPtr in_info) {}

// static
bool UnzipperStubDispatch::Accept(
    Unzipper* impl,
    mojo::Message* message) {}

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

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

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


}  // unzip::mojom


namespace mojo {


// static
bool StructTraits<::unzip::mojom::UnzipOptions::DataView, ::unzip::mojom::UnzipOptionsPtr>::Read(
    ::unzip::mojom::UnzipOptions::DataView input,
    ::unzip::mojom::UnzipOptionsPtr* output) {}


// static
bool StructTraits<::unzip::mojom::Info::DataView, ::unzip::mojom::InfoPtr>::Read(
    ::unzip::mojom::Info::DataView input,
    ::unzip::mojom::InfoPtr* 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 unzip::mojom {


void UnzipFilterInterceptorForTesting::ShouldUnzipFile(const ::base::FilePath& path, ShouldUnzipFileCallback callback) {}
UnzipFilterAsyncWaiter::UnzipFilterAsyncWaiter(
    UnzipFilter* proxy) :{}

UnzipFilterAsyncWaiter::~UnzipFilterAsyncWaiter() = default;

void UnzipFilterAsyncWaiter::ShouldUnzipFile(
    const ::base::FilePath& path, bool* out_result) {}

bool UnzipFilterAsyncWaiter::ShouldUnzipFile(
    const ::base::FilePath& path) {}




void UnzipListenerInterceptorForTesting::OnProgress(uint64_t bytes) {}
UnzipListenerAsyncWaiter::UnzipListenerAsyncWaiter(
    UnzipListener* proxy) :{}

UnzipListenerAsyncWaiter::~UnzipListenerAsyncWaiter() = default;




void UnzipperInterceptorForTesting::Unzip(::base::File zip_file, ::mojo::PendingRemote<::storage::mojom::Directory> output_dir, UnzipOptionsPtr options, ::mojo::PendingRemote<UnzipFilter> filter, ::mojo::PendingRemote<UnzipListener> listener, UnzipCallback callback) {}
void UnzipperInterceptorForTesting::DetectEncoding(::base::File zip_file, DetectEncodingCallback callback) {}
void UnzipperInterceptorForTesting::GetExtractedInfo(::base::File zip_file, GetExtractedInfoCallback callback) {}
UnzipperAsyncWaiter::UnzipperAsyncWaiter(
    Unzipper* proxy) :{}

UnzipperAsyncWaiter::~UnzipperAsyncWaiter() = default;

void UnzipperAsyncWaiter::Unzip(
    ::base::File zip_file, ::mojo::PendingRemote<::storage::mojom::Directory> output_dir, UnzipOptionsPtr options, ::mojo::PendingRemote<UnzipFilter> filter, ::mojo::PendingRemote<UnzipListener> listener, bool* out_result) {}

bool UnzipperAsyncWaiter::Unzip(
    ::base::File zip_file, ::mojo::PendingRemote<::storage::mojom::Directory> output_dir, UnzipOptionsPtr options, ::mojo::PendingRemote<UnzipFilter> filter, ::mojo::PendingRemote<UnzipListener> listener) {}

void UnzipperAsyncWaiter::DetectEncoding(
    ::base::File zip_file, int32_t* out_encoding) {}

int32_t UnzipperAsyncWaiter::DetectEncoding(
    ::base::File zip_file) {}

void UnzipperAsyncWaiter::GetExtractedInfo(
    ::base::File zip_file, InfoPtr* out_info) {}

InfoPtr UnzipperAsyncWaiter::GetExtractedInfo(
    ::base::File zip_file) {}






}  // unzip::mojom


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