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

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

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


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

DeviceAttributeResult::~DeviceAttributeResult() {}


void DeviceAttributeResult::set_error_message(
    const std::string& error_message) {}
void DeviceAttributeResult::set_attribute(
    const std::optional<std::string>& attribute) {}

void DeviceAttributeResult::DestroyActive() {}

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ManagedConfigurationObserver::OnConfigurationChanged_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void ManagedConfigurationObserverProxy::OnConfigurationChanged(
    ) {}

// static
bool ManagedConfigurationObserverStubDispatch::Accept(
    ManagedConfigurationObserver* impl,
    mojo::Message* message) {}

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

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

const char DeviceAPIService::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t DeviceAPIService::GetDirectoryId_Sym::IPCStableHash() {}
uint32_t DeviceAPIService::GetHostname_Sym::IPCStableHash() {}
uint32_t DeviceAPIService::GetSerialNumber_Sym::IPCStableHash() {}
uint32_t DeviceAPIService::GetAnnotatedAssetId_Sym::IPCStableHash() {}
uint32_t DeviceAPIService::GetAnnotatedLocation_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class DeviceAPIService_GetDirectoryId_ForwardToCallback
    : public mojo::MessageReceiver {};

class DeviceAPIService_GetHostname_ForwardToCallback
    : public mojo::MessageReceiver {};

class DeviceAPIService_GetSerialNumber_ForwardToCallback
    : public mojo::MessageReceiver {};

class DeviceAPIService_GetAnnotatedAssetId_ForwardToCallback
    : public mojo::MessageReceiver {};

class DeviceAPIService_GetAnnotatedLocation_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void DeviceAPIServiceProxy::GetDirectoryId(
    GetDirectoryIdCallback callback) {}

void DeviceAPIServiceProxy::GetHostname(
    GetHostnameCallback callback) {}

void DeviceAPIServiceProxy::GetSerialNumber(
    GetSerialNumberCallback callback) {}

void DeviceAPIServiceProxy::GetAnnotatedAssetId(
    GetAnnotatedAssetIdCallback callback) {}

void DeviceAPIServiceProxy::GetAnnotatedLocation(
    GetAnnotatedLocationCallback callback) {}
class DeviceAPIService_GetDirectoryId_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void DeviceAPIService_GetDirectoryId_ProxyToResponder::Run(
    DeviceAttributeResultPtr in_result) {}
class DeviceAPIService_GetHostname_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void DeviceAPIService_GetHostname_ProxyToResponder::Run(
    DeviceAttributeResultPtr in_result) {}
class DeviceAPIService_GetSerialNumber_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void DeviceAPIService_GetSerialNumber_ProxyToResponder::Run(
    DeviceAttributeResultPtr in_result) {}
class DeviceAPIService_GetAnnotatedAssetId_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void DeviceAPIService_GetAnnotatedAssetId_ProxyToResponder::Run(
    DeviceAttributeResultPtr in_result) {}
class DeviceAPIService_GetAnnotatedLocation_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void DeviceAPIService_GetAnnotatedLocation_ProxyToResponder::Run(
    DeviceAttributeResultPtr in_result) {}

// static
bool DeviceAPIServiceStubDispatch::Accept(
    DeviceAPIService* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ManagedConfigurationService::GetManagedConfiguration_Sym::IPCStableHash() {}
uint32_t ManagedConfigurationService::SubscribeToManagedConfiguration_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class ManagedConfigurationService_GetManagedConfiguration_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void ManagedConfigurationServiceProxy::GetManagedConfiguration(
    const std::vector<std::string>& in_keys, GetManagedConfigurationCallback callback) {}

void ManagedConfigurationServiceProxy::SubscribeToManagedConfiguration(
    ::mojo::PendingRemote<ManagedConfigurationObserver> in_observer) {}
class ManagedConfigurationService_GetManagedConfiguration_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ManagedConfigurationService_GetManagedConfiguration_ProxyToResponder::Run(
    const std::optional<base::flat_map<std::string, std::string>>& in_configurations) {}

// static
bool ManagedConfigurationServiceStubDispatch::Accept(
    ManagedConfigurationService* impl,
    mojo::Message* message) {}

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

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

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


}  // blink::mojom


namespace mojo {

// static
bool UnionTraits<::blink::mojom::DeviceAttributeResult::DataView, ::blink::mojom::DeviceAttributeResultPtr>::Read(
    ::blink::mojom::DeviceAttributeResult::DataView input,
    ::blink::mojom::DeviceAttributeResultPtr* 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 ManagedConfigurationObserverInterceptorForTesting::OnConfigurationChanged() {}
ManagedConfigurationObserverAsyncWaiter::ManagedConfigurationObserverAsyncWaiter(
    ManagedConfigurationObserver* proxy) :{}

ManagedConfigurationObserverAsyncWaiter::~ManagedConfigurationObserverAsyncWaiter() = default;




void DeviceAPIServiceInterceptorForTesting::GetDirectoryId(GetDirectoryIdCallback callback) {}
void DeviceAPIServiceInterceptorForTesting::GetHostname(GetHostnameCallback callback) {}
void DeviceAPIServiceInterceptorForTesting::GetSerialNumber(GetSerialNumberCallback callback) {}
void DeviceAPIServiceInterceptorForTesting::GetAnnotatedAssetId(GetAnnotatedAssetIdCallback callback) {}
void DeviceAPIServiceInterceptorForTesting::GetAnnotatedLocation(GetAnnotatedLocationCallback callback) {}
DeviceAPIServiceAsyncWaiter::DeviceAPIServiceAsyncWaiter(
    DeviceAPIService* proxy) :{}

DeviceAPIServiceAsyncWaiter::~DeviceAPIServiceAsyncWaiter() = default;

void DeviceAPIServiceAsyncWaiter::GetDirectoryId(
    DeviceAttributeResultPtr* out_result) {}

DeviceAttributeResultPtr DeviceAPIServiceAsyncWaiter::GetDirectoryId(
    ) {}

void DeviceAPIServiceAsyncWaiter::GetHostname(
    DeviceAttributeResultPtr* out_result) {}

DeviceAttributeResultPtr DeviceAPIServiceAsyncWaiter::GetHostname(
    ) {}

void DeviceAPIServiceAsyncWaiter::GetSerialNumber(
    DeviceAttributeResultPtr* out_result) {}

DeviceAttributeResultPtr DeviceAPIServiceAsyncWaiter::GetSerialNumber(
    ) {}

void DeviceAPIServiceAsyncWaiter::GetAnnotatedAssetId(
    DeviceAttributeResultPtr* out_result) {}

DeviceAttributeResultPtr DeviceAPIServiceAsyncWaiter::GetAnnotatedAssetId(
    ) {}

void DeviceAPIServiceAsyncWaiter::GetAnnotatedLocation(
    DeviceAttributeResultPtr* out_result) {}

DeviceAttributeResultPtr DeviceAPIServiceAsyncWaiter::GetAnnotatedLocation(
    ) {}




void ManagedConfigurationServiceInterceptorForTesting::GetManagedConfiguration(const std::vector<std::string>& keys, GetManagedConfigurationCallback callback) {}
void ManagedConfigurationServiceInterceptorForTesting::SubscribeToManagedConfiguration(::mojo::PendingRemote<ManagedConfigurationObserver> observer) {}
ManagedConfigurationServiceAsyncWaiter::ManagedConfigurationServiceAsyncWaiter(
    ManagedConfigurationService* proxy) :{}

ManagedConfigurationServiceAsyncWaiter::~ManagedConfigurationServiceAsyncWaiter() = default;

void ManagedConfigurationServiceAsyncWaiter::GetManagedConfiguration(
    const std::vector<std::string>& keys, std::optional<base::flat_map<std::string, std::string>>* out_configurations) {}

std::optional<base::flat_map<std::string, std::string>> ManagedConfigurationServiceAsyncWaiter::GetManagedConfiguration(
    const std::vector<std::string>& keys) {}






}  // blink::mojom


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