HSTS: API to clear the HSTS enforcer policies
In order to integrate our HSTS support in WebKit with the website data manager we need to add API to clean HSTS policies from a SoupHSTSEnforcer
. The API needed should be sufficient to implement these methods in WebKit:
void getHostNamesWithHSTSCache(WebCore::NetworkStorageSession&, HashSet<String>&);
void deleteHSTSCacheForHostNames(WebCore::NetworkStorageSession&, const Vector<String>&);
void clearHSTSCache(WebCore::NetworkStorageSession&, WallTime modifiedSince);
Probably thse will be enough:
soup_hsts_enforcer_clear()
soup_hsts_enforcer_delete_policy()
soup_hsts_enforcer_foreach()
or something like that.