chromium/out/Default/gen/components/device_signals/core/common/mojom/system_signals.mojom.cc

// components/device_signals/core/common/mojom/system_signals.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/device_signals/core/common/mojom/system_signals.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/device_signals/core/common/mojom/system_signals.mojom-params-data.h"
#include "components/device_signals/core/common/mojom/system_signals.mojom-shared-message-ids.h"

#include "components/device_signals/core/common/mojom/system_signals.mojom-import-headers.h"
#include "components/device_signals/core/common/mojom/system_signals.mojom-test-utils.h"


namespace device_signals::mojom {
ExecutableMetadata::ExecutableMetadata()
    :{}

ExecutableMetadata::ExecutableMetadata(
    bool is_running_in,
    std::optional<std::vector<std::string>> public_keys_hashes_in,
    const std::optional<std::string>& product_name_in,
    const std::optional<std::string>& version_in,
    bool is_os_verified_in,
    const std::optional<std::string>& subject_name_in)
    :{}

ExecutableMetadata::~ExecutableMetadata() = default;

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

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

FileSystemItem::FileSystemItem(
    const ::base::FilePath& file_path_in,
    ::device_signals::PresenceValue presence_in,
    const std::optional<std::string>& sha256_hash_in,
    const std::optional<::device_signals::ExecutableMetadata>& executable_metadata_in)
    :{}

FileSystemItem::~FileSystemItem() = default;

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

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

FileSystemItemRequest::FileSystemItemRequest(
    const ::base::FilePath& file_path_in,
    bool compute_sha256_in,
    bool compute_executable_metadata_in)
    :{}

FileSystemItemRequest::~FileSystemItemRequest() = default;

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SystemSignalsService::GetFileSystemSignals_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class SystemSignalsService_GetFileSystemSignals_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void SystemSignalsServiceProxy::GetFileSystemSignals(
    const std::vector<::device_signals::GetFileSystemInfoOptions>& in_requests, GetFileSystemSignalsCallback callback) {}
class SystemSignalsService_GetFileSystemSignals_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void SystemSignalsService_GetFileSystemSignals_ProxyToResponder::Run(
    const std::vector<::device_signals::FileSystemItem>& in_items) {}

// static
bool SystemSignalsServiceStubDispatch::Accept(
    SystemSignalsService* impl,
    mojo::Message* message) {}

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

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

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


}  // device_signals::mojom


namespace mojo {


// static
bool StructTraits<::device_signals::mojom::ExecutableMetadata::DataView, ::device_signals::mojom::ExecutableMetadataPtr>::Read(
    ::device_signals::mojom::ExecutableMetadata::DataView input,
    ::device_signals::mojom::ExecutableMetadataPtr* output) {}


// static
bool StructTraits<::device_signals::mojom::FileSystemItem::DataView, ::device_signals::mojom::FileSystemItemPtr>::Read(
    ::device_signals::mojom::FileSystemItem::DataView input,
    ::device_signals::mojom::FileSystemItemPtr* output) {}


// static
bool StructTraits<::device_signals::mojom::FileSystemItemRequest::DataView, ::device_signals::mojom::FileSystemItemRequestPtr>::Read(
    ::device_signals::mojom::FileSystemItemRequest::DataView input,
    ::device_signals::mojom::FileSystemItemRequestPtr* 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 device_signals::mojom {


void SystemSignalsServiceInterceptorForTesting::GetFileSystemSignals(const std::vector<::device_signals::GetFileSystemInfoOptions>& requests, GetFileSystemSignalsCallback callback) {}
SystemSignalsServiceAsyncWaiter::SystemSignalsServiceAsyncWaiter(
    SystemSignalsService* proxy) :{}

SystemSignalsServiceAsyncWaiter::~SystemSignalsServiceAsyncWaiter() = default;

void SystemSignalsServiceAsyncWaiter::GetFileSystemSignals(
    const std::vector<::device_signals::GetFileSystemInfoOptions>& requests, std::vector<::device_signals::FileSystemItem>* out_items) {}

std::vector<::device_signals::FileSystemItem> SystemSignalsServiceAsyncWaiter::GetFileSystemSignals(
    const std::vector<::device_signals::GetFileSystemInfoOptions>& requests) {}






}  // device_signals::mojom


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