1 #ifndef SRC_PERMISSION_WORKER_PERMISSION_H_ 2 #define SRC_PERMISSION_WORKER_PERMISSION_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 #include <vector> 7 #include "permission/permission_base.h" 8 9 namespace node { 10 11 namespace permission { 12 13 class WorkerPermission final : public PermissionBase { 14 public: 15 void Apply(const std::string& allow, PermissionScope scope) override; 16 bool is_granted(PermissionScope perm, 17 const std::string_view& param = "") override; 18 19 private: 20 bool deny_all_; 21 }; 22 23 } // namespace permission 24 25 } // namespace node 26 27 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 28 #endif // SRC_PERMISSION_WORKER_PERMISSION_H_ 29