/src/node/src/permission/net_permission.cc
Line | Count | Source |
1 | | #include "net_permission.h" |
2 | | |
3 | | #include <iostream> |
4 | | #include <string> |
5 | | |
6 | | namespace node { |
7 | | |
8 | | namespace permission { |
9 | | |
10 | | void NetPermission::Apply(Environment* env, |
11 | | const std::vector<std::string>& allow, |
12 | 0 | PermissionScope scope) { |
13 | 0 | allow_net_ = true; |
14 | 0 | } |
15 | | |
16 | | bool NetPermission::is_granted(Environment* env, |
17 | | PermissionScope perm, |
18 | 0 | const std::string_view& param) const { |
19 | 0 | return allow_net_; |
20 | 0 | } |
21 | | |
22 | | } // namespace permission |
23 | | } // namespace node |