libservo: Introduce SiteDataManager and NetworkManager - #41255
Conversation
79a0610 to
dfb788a
Compare
mrobinson
left a comment
There was a problem hiding this comment.
Just a question: does it makes sense for the CookieManager to become a NetworkManager data structure or to combine it into the SiteDataManager. I'm starting to be convinced that cookies are also site data as well. What do you think?
Would you be willing to combine the two data structures into a single SiteDataManager?
Yeah, now that I think about it again, it probably makes more sense to have just one manager. I was likely too influenced by WPE WebKit. That said, the planned protocol handlers probably do deserve a separate How about a new follow-up PR where I rename |
I can also do that in this PR, if that's preferred. |
Maybe it would indeed be better to do it all in one go here to avoid code churn. I think you could also combine the cookie.rs test into the new test file as well. Thanks! |
d7ad04f to
4802a91
Compare
|
Ok, added a new commit for that. |
mrobinson
left a comment
There was a problem hiding this comment.
Looks good!
One nit to address before landing:
Let's name the Rust files after the data structure they expose, so site_data.rs would be site_data_manager.rs and net.rs would be network_manager.rs. This is just to be consistent with the API Rust files we already have.
4802a91 to
0e6b40f
Compare
0e6b40f to
c4aaa93
Compare
Done (in a new commit) |
c4aaa93 to
669786b
Compare
This patch introduces an initial `SiteDataManager` abstraction intended primarily for embedders to inspect and manage site data. At this stage, only clearing of network cache is supported. Additional functionality will be added in follow-up PRs. Signed-off-by: Jan Varga <jvarga@igalia.com>
…cookies` to `SiteDataManager` This patch renames `CookieManager` to `NetworkManager` to better reflect its future scope. It also moves `clear_cookies` to `SiteDataManager`, aligning cookie clearing with other planned site data APIs. No functional changes are intended. Signed-off-by: Jan Varga <jvarga@igalia.com>
Signed-off-by: Jan Varga <jvarga@igalia.com>
669786b to
5cd07af
Compare
SiteDataManager for embeddersSiteDataManager and NetworkManager
This PR introduces an initial
SiteDataManagerabstraction intendedprimarily for embedders to inspect and manage site data.
At this stage,
SiteDataManagersupports clearing network cache andcookies. Cookie related functionality has been moved here from the
former
CookieManager, which has been renamed toNetworkManagertobetter reflect its scope.
Additional site data APIs will be added in follow-up PRs.
Testing: Added a new integration test with a TODO comment.