#include "chrome/enterprise_companion/enterprise_companion_service_stub.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/sequence_checker.h"
#include "build/build_config.h"
#include "chrome/enterprise_companion/enterprise_companion_service.h"
#include "chrome/enterprise_companion/enterprise_companion_status.h"
#include "chrome/enterprise_companion/global_constants.h"
#include "chrome/enterprise_companion/mojom/enterprise_companion.mojom.h"
#include "components/named_mojo_ipc_server/connection_info.h"
#include "components/named_mojo_ipc_server/endpoint_options.h"
#include "components/named_mojo_ipc_server/named_mojo_ipc_server.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/platform/named_platform_channel.h"
namespace enterprise_companion {
namespace {
class UntrustedCallerStub final : public mojom::EnterpriseCompanion { … };
class Stub final : public mojom::EnterpriseCompanion { … };
}
named_mojo_ipc_server::EndpointOptions CreateServerEndpointOptions(
const mojo::NamedPlatformChannel::ServerName& server_name) { … }
std::unique_ptr<mojom::EnterpriseCompanion>
CreateEnterpriseCompanionServiceStub(
std::unique_ptr<EnterpriseCompanionService> service,
const named_mojo_ipc_server::EndpointOptions& options,
IpcTrustDecider trust_decider,
base::RepeatingClosure endpoint_created_listener_for_testing) { … }
}