cdp: add security.enable

This commit is contained in:
Pierre Tachoire
2025-01-08 16:15:54 +01:00
parent 90fb90b186
commit 03e87155ca
2 changed files with 62 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ const Input = @import("msg.zig").Input;
const inspector = @import("inspector.zig").inspector;
const dom = @import("dom.zig").dom;
const css = @import("css.zig").css;
const security = @import("security.zig").security;
const log_cdp = std.log.scoped(.cdp);
@@ -69,6 +70,7 @@ const Domains = enum {
Emulation,
Fetch,
Performance,
Security,
};
// The caller is responsible for calling `free` on the returned slice.
@@ -112,6 +114,7 @@ pub fn dispatch(
.Emulation => emulation(alloc, msg, action, ctx),
.Fetch => fetch(alloc, msg, action, ctx),
.Performance => performance(alloc, msg, action, ctx),
.Security => security(alloc, msg, action, ctx),
};
}