LibWebView: Add a command line flag to enable the HTTP disk cache

This adds a RequestServerOptions structure to hold this option and the
only other RS option we currently have (certificates).
This commit is contained in:
Timothy Flynn 2025-10-08 21:17:05 -04:00 committed by Andreas Kling
parent 3516a2344f
commit 42eaea1043
Notes: github-actions[bot] 2025-10-14 11:41:44 +00:00
4 changed files with 26 additions and 3 deletions

View file

@ -74,7 +74,6 @@ struct BrowserOptions {
Optional<HeadlessMode> headless_mode;
int window_width { 800 };
int window_height { 600 };
Vector<ByteString> certificates {};
NewWindow new_window { NewWindow::No };
ForceNewProcess force_new_process { ForceNewProcess::No };
AllowPopups allow_popups { AllowPopups::No };
@ -87,6 +86,16 @@ struct BrowserOptions {
Optional<u16> devtools_port;
};
enum class EnableHTTPDiskCache {
No,
Yes,
};
struct RequestServerOptions {
Vector<ByteString> certificates;
EnableHTTPDiskCache enable_http_disk_cache { EnableHTTPDiskCache::No };
};
enum class IsLayoutTestMode {
No,
Yes,