[PSON] Introduce a WebContent Process cache
[WebKit-https.git] / Source / WebKit / UIProcess / API / C / WKContextConfigurationRef.cpp
index 338c0dd..1765314 100644 (file)
@@ -188,6 +188,16 @@ void WKContextConfigurationSetPrewarmsProcessesAutomatically(WKContextConfigurat
     toImpl(configuration)->setIsAutomaticProcessWarmingEnabled(prewarms);
 }
 
+bool WKContextConfigurationUsesWebProcessCache(WKContextConfigurationRef configuration)
+{
+    return toImpl(configuration)->usesWebProcessCache();
+}
+
+void WKContextConfigurationSetUsesWebProcessCache(WKContextConfigurationRef configuration, bool uses)
+{
+    toImpl(configuration)->setUsesWebProcessCache(uses);
+}
+
 bool WKContextConfigurationAlwaysKeepAndReuseSwappedProcesses(WKContextConfigurationRef configuration)
 {
     return toImpl(configuration)->alwaysKeepAndReuseSwappedProcesses();