mojo_ipc_util.h 763 B

123456789101112131415161718192021
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_HOST_MOJO_IPC_MOJO_IPC_UTIL_H_
  5. #define REMOTING_HOST_MOJO_IPC_MOJO_IPC_UTIL_H_
  6. #include "base/strings/string_piece_forward.h"
  7. #include "mojo/public/cpp/platform/named_platform_channel.h"
  8. namespace remoting {
  9. // Creates a server name that is independent to the working directory, i.e.
  10. // it resolves to the same channel no matter which working directory you are
  11. // running the binary from.
  12. mojo::NamedPlatformChannel::ServerName
  13. WorkingDirectoryIndependentServerNameFromUTF8(base::StringPiece name);
  14. } // namespace remoting
  15. #endif // REMOTING_HOST_MOJO_IPC_MOJO_IPC_UTIL_H_