mojo_caller_security_checker.h 596 B

123456789101112131415161718
  1. // Copyright 2022 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_CALLER_SECURITY_CHECKER_H_
  5. #define REMOTING_HOST_MOJO_IPC_MOJO_CALLER_SECURITY_CHECKER_H_
  6. #include "base/process/process_handle.h"
  7. namespace remoting {
  8. // Returns true if the process referred to by |caller_pid| is a trusted mojo
  9. // endpoint.
  10. bool IsTrustedMojoEndpoint(base::ProcessId caller_pid);
  11. } // namespace remoting
  12. #endif // REMOTING_HOST_MOJO_IPC_MOJO_CALLER_SECURITY_CHECKER_H_