-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Expand file tree
/
Copy pathinspector_permission.h
More file actions
34 lines (25 loc) · 914 Bytes
/
inspector_permission.h
File metadata and controls
34 lines (25 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef SRC_PERMISSION_INSPECTOR_PERMISSION_H_
#define SRC_PERMISSION_INSPECTOR_PERMISSION_H_
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include <string>
#include "permission/permission_base.h"
namespace node {
namespace permission {
class InspectorPermission final : public PermissionBase {
public:
void Apply(Environment* env,
const std::vector<std::string>& allow,
PermissionScope scope) override;
void Drop(Environment* env,
PermissionScope scope,
const std::string_view& param = "") override;
bool is_granted(Environment* env,
PermissionScope perm,
const std::string_view& param = "") const override;
private:
bool deny_all_;
};
} // namespace permission
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#endif // SRC_PERMISSION_INSPECTOR_PERMISSION_H_