Skip to main content

Module data_store

Module data_store 

Source
Expand description

Global website-data operations for privacy surfaces: usage counts, clear cache, clear cookies & site data.

Every operation here is profile-wide: all browser tabs share one browser profile (the platform’s default data store), so clears affect every site, not just the current tab. On Windows, [cache_site_count] returns Ok(0) because WebView2 cannot enumerate HTTP-cache origins (clearing still works). Unsupported platforms return WebViewError::Unsupported.

Structs§

SiteDataUsage
Profile-wide cookies/site-data footprint.

Functions§

cache_site_count
clear_all_site_data
clear_cache
site_data_usage