1 #include "child_process_permission.h" 2 3 #include <string> 4 #include <vector> 5 6 namespace node { 7 8 namespace permission { 9 10 // Currently, ChildProcess manage a single state 11 // Once denied, it's always denied Apply(const std::string& allow, PermissionScope scope)12void ChildProcessPermission::Apply(const std::string& allow, 13 PermissionScope scope) { 14 deny_all_ = true; 15 } 16 is_granted(PermissionScope perm, const std::string_view& param)17bool ChildProcessPermission::is_granted(PermissionScope perm, 18 const std::string_view& param) { 19 return deny_all_ == false; 20 } 21 22 } // namespace permission 23 } // namespace node 24