X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebKit%2FNetworkProcess%2FNetworkProcess.cpp;h=fd7995adb0916790def0b265301a3b25153ace0e;hp=5ae4eb8b1cd4fd90b9b41e64c5e210ee128f5138;hb=e7002257fc601b8254e8c9fd371da5dd7fa7dedc;hpb=114f174f3d0e33036291cf5573d9e88a07afd892 diff --git a/Source/WebKit/NetworkProcess/NetworkProcess.cpp b/Source/WebKit/NetworkProcess/NetworkProcess.cpp index 5ae4eb8..fd7995a 100644 --- a/Source/WebKit/NetworkProcess/NetworkProcess.cpp +++ b/Source/WebKit/NetworkProcess/NetworkProcess.cpp @@ -319,10 +319,16 @@ void NetworkProcess::didGrantSandboxExtensionsToStorageProcessForBlobs(uint64_t } #if HAVE(CFNETWORK_STORAGE_PARTITIONING) -void NetworkProcess::updateCookiePartitioningForTopPrivatelyOwnedDomains(PAL::SessionID sessionID, const Vector& domainsToRemove, const Vector& domainsToAdd, bool shouldClearFirst) +void NetworkProcess::updatePrevalentDomainsWithAndWithoutInteraction(PAL::SessionID sessionID, const Vector& domainsWithInteraction, const Vector& domainsWithoutInteraction, bool shouldClearFirst) { if (auto* networkStorageSession = NetworkStorageSession::storageSession(sessionID)) - networkStorageSession->setShouldPartitionCookiesForHosts(domainsToRemove, domainsToAdd, shouldClearFirst); + networkStorageSession->setPrevalentDomainsWithAndWithoutInteraction(domainsWithInteraction, domainsWithoutInteraction, shouldClearFirst); +} + +void NetworkProcess::removePrevalentDomains(PAL::SessionID sessionID, const Vector& domains) +{ + if (auto* networkStorageSession = NetworkStorageSession::storageSession(sessionID)) + networkStorageSession->removePrevalentDomains(domains); } #endif