#include "remoting/host/ipc_constants.h"
#include "base/logging.h"
#include "base/no_destructor.h"
#include "base/path_service.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "components/named_mojo_ipc_server/named_mojo_ipc_util.h"
#include "mojo/public/cpp/platform/named_platform_channel.h"
#include "remoting/host/base/username.h"
namespace remoting {
namespace {
#if BUILDFLAG(IS_LINUX)
#if !defined(NDEBUG)
constexpr char kChromotingHostServicesIpcNamePattern[] = …;
#else
constexpr char kChromotingHostServicesIpcNamePattern[] =
"chromoting.%s.host_services_mojo_ipc";
#endif
#else
constexpr char kChromotingHostServicesIpcName[] =
"chromoting.host_services_mojo_ipc";
#endif
}
const base::FilePath::CharType kHostBinaryName[] = …);
const base::FilePath::CharType kDesktopBinaryName[] = …);
const uint64_t kChromotingHostServicesMessagePipeId = …;
bool GetInstalledBinaryPath(const base::FilePath::StringType& binary,
base::FilePath* full_path) { … }
const mojo::NamedPlatformChannel::ServerName&
GetChromotingHostServicesServerName() { … }
}