blob: 2e233791f8bd767ac2915af266611fc81e02e59c [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_MOJO_CALLER_SECURITY_CHECKER_H_
#define REMOTING_HOST_MOJO_CALLER_SECURITY_CHECKER_H_
#include <memory>
namespace named_mojo_ipc_server {
struct ConnectionInfo;
}
namespace remoting {
// Returns true if the process referred to by |caller_pid| is a trusted mojo
// endpoint.
bool IsTrustedMojoEndpoint(
std::unique_ptr<named_mojo_ipc_server::ConnectionInfo> caller);
} // namespace remoting
#endif // REMOTING_HOST_MOJO_CALLER_SECURITY_CHECKER_H_