xref: /third_party/node/src/permission/child_process_permission.h (revision 1cb0ef41)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/src/permission/
11cb0ef41Sopenharmony_ci#ifndef SRC_PERMISSION_CHILD_PROCESS_PERMISSION_H_
21cb0ef41Sopenharmony_ci#define SRC_PERMISSION_CHILD_PROCESS_PERMISSION_H_
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci#include <vector>
71cb0ef41Sopenharmony_ci#include "permission/permission_base.h"
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_cinamespace node {
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_cinamespace permission {
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ciclass ChildProcessPermission final : public PermissionBase {
141cb0ef41Sopenharmony_ci public:
151cb0ef41Sopenharmony_ci  void Apply(const std::string& allow, PermissionScope scope) override;
161cb0ef41Sopenharmony_ci  bool is_granted(PermissionScope perm,
171cb0ef41Sopenharmony_ci                  const std::string_view& param = "") override;
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_ci private:
201cb0ef41Sopenharmony_ci  bool deny_all_;
211cb0ef41Sopenharmony_ci};
221cb0ef41Sopenharmony_ci
231cb0ef41Sopenharmony_ci}  // namespace permission
241cb0ef41Sopenharmony_ci
251cb0ef41Sopenharmony_ci}  // namespace node
261cb0ef41Sopenharmony_ci
271cb0ef41Sopenharmony_ci#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
281cb0ef41Sopenharmony_ci#endif  // SRC_PERMISSION_CHILD_PROCESS_PERMISSION_H_
29

Indexes created Thu Nov 07 10:32:03 CST 2024