#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/service_manager/public/mojom/service.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 "services/service_manager/public/mojom/service.mojom-params-data.h"
#include "services/service_manager/public/mojom/service.mojom-shared-message-ids.h"
#include "services/service_manager/public/mojom/service.mojom-import-headers.h"
#include "services/service_manager/public/mojom/service.mojom-test-utils.h"
namespace service_manager::mojom {
BindSourceInfo::BindSourceInfo()
: … { … }
BindSourceInfo::BindSourceInfo(
const ::service_manager::Identity& identity_in,
const ::service_manager::CapabilitySet& required_capabilities_in)
: … { … }
BindSourceInfo::~BindSourceInfo() = default;
void BindSourceInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool BindSourceInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char Service::Name_[] = …;
Service::IPCStableHashFunction Service::MessageToMethodInfo_(mojo::Message& message) { … }
const char* Service::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Service::OnStart_Sym::IPCStableHash() { … }
uint32_t Service::OnBindInterface_Sym::IPCStableHash() { … }
uint32_t Service::CreatePackagedServiceInstance_Sym::IPCStableHash() { … }
# endif
class Service_OnStart_ForwardToCallback
: public mojo::MessageReceiver { … };
class Service_OnBindInterface_ForwardToCallback
: public mojo::MessageReceiver { … };
ServiceProxy::ServiceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ServiceProxy::OnStart(
const ::service_manager::Identity& in_identity, OnStartCallback callback) { … }
void ServiceProxy::OnBindInterface(
const ::service_manager::BindSourceInfo& in_source, const std::string& in_interface_name, ::mojo::ScopedMessagePipeHandle in_interface_pipe, OnBindInterfaceCallback callback) { … }
void ServiceProxy::CreatePackagedServiceInstance(
const ::service_manager::Identity& in_identity, ::mojo::PendingReceiver<Service> in_receiver, ::mojo::PendingRemote<::service_manager::mojom::ProcessMetadata> in_metadata) { … }
class Service_OnStart_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Service_OnStart_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Service_OnStart_ProxyToResponder::Run(
::mojo::PendingReceiver<::service_manager::mojom::Connector> in_connector_receiver, ::mojo::PendingAssociatedReceiver<::service_manager::mojom::ServiceControl> in_control_receiver) { … }
class Service_OnBindInterface_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Service_OnBindInterface_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Service_OnBindInterface_ProxyToResponder::Run(
) { … }
bool ServiceStubDispatch::Accept(
Service* impl,
mojo::Message* message) { … }
bool ServiceStubDispatch::AcceptWithResponder(
Service* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kServiceValidationInfo[] = …;
bool ServiceRequestValidator::Accept(mojo::Message* message) { … }
bool ServiceResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::service_manager::mojom::BindSourceInfo::DataView, ::service_manager::mojom::BindSourceInfoPtr>::Read(
::service_manager::mojom::BindSourceInfo::DataView input,
::service_manager::mojom::BindSourceInfoPtr* output) { … }
}
namespace service_manager::mojom {
void ServiceInterceptorForTesting::OnStart(const ::service_manager::Identity& identity, OnStartCallback callback) { … }
void ServiceInterceptorForTesting::OnBindInterface(const ::service_manager::BindSourceInfo& source, const std::string& interface_name, ::mojo::ScopedMessagePipeHandle interface_pipe, OnBindInterfaceCallback callback) { … }
void ServiceInterceptorForTesting::CreatePackagedServiceInstance(const ::service_manager::Identity& identity, ::mojo::PendingReceiver<Service> receiver, ::mojo::PendingRemote<::service_manager::mojom::ProcessMetadata> metadata) { … }
ServiceAsyncWaiter::ServiceAsyncWaiter(
Service* proxy) : … { … }
ServiceAsyncWaiter::~ServiceAsyncWaiter() = default;
void ServiceAsyncWaiter::OnStart(
const ::service_manager::Identity& identity, ::mojo::PendingReceiver<::service_manager::mojom::Connector>* out_connector_receiver, ::mojo::PendingAssociatedReceiver<::service_manager::mojom::ServiceControl>* out_control_receiver) { … }
void ServiceAsyncWaiter::OnBindInterface(
const ::service_manager::BindSourceInfo& source, const std::string& interface_name, ::mojo::ScopedMessagePipeHandle interface_pipe) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif