Move NetworkProcessProxy ownership from WebProcessPool to WebsiteDataStore
[WebKit-https.git] / Source / WebKit / UIProcess / WebsiteData / curl / WebsiteDataStoreCurl.cpp
index 38b6a0d..64b6c74 100644 (file)
 #include "WebsiteDataStore.h"
 
 #include "NetworkProcessMessages.h"
 #include "WebsiteDataStore.h"
 
 #include "NetworkProcessMessages.h"
+#include "WebCoreArgumentCoders.h"
 #include "WebProcessPool.h"
 #include "WebsiteDataStoreParameters.h"
 
 namespace WebKit {
 
 #include "WebProcessPool.h"
 #include "WebsiteDataStoreParameters.h"
 
 namespace WebKit {
 
-void WebsiteDataStore::platformSetParameters(WebsiteDataStoreParameters& parameters)
+void WebsiteDataStore::platformSetNetworkParameters(WebsiteDataStoreParameters& parameters)
 {
     parameters.networkSessionParameters.proxySettings = m_proxySettings;
 }
 {
     parameters.networkSessionParameters.proxySettings = m_proxySettings;
 }
@@ -41,8 +42,7 @@ void WebsiteDataStore::setNetworkProxySettings(WebCore::CurlProxySettings&& prox
 {
     m_proxySettings = WTFMove(proxySettings);
 
 {
     m_proxySettings = WTFMove(proxySettings);
 
-    for (auto& processPool : processPools())
-        processPool->sendToNetworkingProcess(Messages::NetworkProcess::SetNetworkProxySettings(m_sessionID, m_proxySettings));
+    networkProcess().send(Messages::NetworkProcess::SetNetworkProxySettings(m_sessionID, m_proxySettings), 0);
 }
 
 }
 }
 
 }