// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MOJO_PUBLIC_CPP_PLATFORM_NAMED_PLATFORM_CHANNEL_H_ #define MOJO_PUBLIC_CPP_PLATFORM_NAMED_PLATFORM_CHANNEL_H_ #include <string> #include <string_view> #include "base/command_line.h" #include "base/component_export.h" #include "build/build_config.h" #include "mojo/public/cpp/platform/platform_channel_endpoint.h" #include "mojo/public/cpp/platform/platform_channel_server_endpoint.h" #if BUILDFLAG(IS_POSIX) #include "base/files/file_path.h" #endif namespace mojo { // NamedPlatformChannel encapsulates a Mojo invitation transport channel which // can listen for inbound connections established by clients connecting to // a named system resource (i.e. a named pipe server on Windows, a named Unix // domain socket on POSIX, a Mach bootstrap server on macOS, other platforms // not supported). // // This can be especially useful when the local process has no way to transfer // handles to the remote process, e.g. it does not control process launch or // have any pre-existing communication channel to the process. class COMPONENT_EXPORT(MOJO_CPP_PLATFORM) NamedPlatformChannel { … }; } // namespace mojo #endif // MOJO_PUBLIC_CPP_PLATFORM_NAMED_PLATFORM_CHANNEL_H_