blob: e1832c9ebf4d4f550755f5e7f1e8f6aaf6794309 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_MAC_PERMISSION_PROCESS_UTILS_H_
#define REMOTING_HOST_MAC_PERMISSION_PROCESS_UTILS_H_
// Utilities for doing permission-checks in a separate process from the
// ME2ME or IT2ME host binaries. These checks are carried out by running the
// relevant binary (the one that needs the permission) with a command-line
// option, and examining the returned exit-code.
namespace remoting {
namespace mac {
enum class HostMode { ME2ME, IT2ME };
// These methods must be called on a thread which allows blocking I/O.
bool CheckAccessibilityPermission(HostMode mode);
bool CheckScreenRecordingPermission(HostMode mode);
} // namespace mac
} // namespace remoting
#endif // REMOTING_HOST_MAC_PERMISSION_PROCESS_UTILS_H_