Add a diskCacheSizeOverride accessor function on WKContextConfigurationRef
authorsihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2018 20:57:51 +0000 (20:57 +0000)
committersihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2018 20:57:51 +0000 (20:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=185826
<rdar://problem/39732113>

Reviewed by Alex Christensen.

* UIProcess/API/C/WKContextConfigurationRef.cpp:
(WKContextConfigurationDiskCacheSizeOverride):
(WKContextConfigurationSetDiskCacheSizeOverride):
* UIProcess/API/C/WKContextConfigurationRef.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232025 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.cpp
Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.h

index 76c79dc..0c6056a 100644 (file)
@@ -1,3 +1,16 @@
+2018-05-21  Sihui Liu  <sihui_liu@apple.com>
+
+        Add a diskCacheSizeOverride accessor function on WKContextConfigurationRef
+        https://bugs.webkit.org/show_bug.cgi?id=185826
+        <rdar://problem/39732113>
+
+        Reviewed by Alex Christensen.
+
+        * UIProcess/API/C/WKContextConfigurationRef.cpp:
+        (WKContextConfigurationDiskCacheSizeOverride):
+        (WKContextConfigurationSetDiskCacheSizeOverride):
+        * UIProcess/API/C/WKContextConfigurationRef.h:
+
 2018-05-21  Jer Noble  <jer.noble@apple.com>
 
         Complete fix for enabling modern EME by default
index 7fd3ac6..1c307f6 100644 (file)
@@ -197,3 +197,14 @@ void WKContextConfigurationSetTracksResourceLoadMilestones(WKContextConfiguratio
 {
     toImpl(configuration)->setTracksResourceLoadMilestones(track);
 }
+
+int64_t WKContextConfigurationDiskCacheSizeOverride(WKContextConfigurationRef configuration)
+{
+    return toImpl(configuration)->diskCacheSizeOverride();
+}
+
+void WKContextConfigurationSetDiskCacheSizeOverride(WKContextConfigurationRef configuration, int64_t size)
+{
+    toImpl(configuration)->setDiskCacheSizeOverride(size);
+}
+
index c9578fc..6af3b2a 100644 (file)
@@ -80,6 +80,9 @@ WK_EXPORT void WKContextConfigurationSetProcessSwapsOnWindowOpenWithOpener(WKCon
 WK_EXPORT bool WKContextConfigurationTracksResourceLoadMilestones(WKContextConfigurationRef configuration);
 WK_EXPORT void WKContextConfigurationSetTracksResourceLoadMilestones(WKContextConfigurationRef configuration, bool track);
 
+WK_EXPORT int64_t WKContextConfigurationDiskCacheSizeOverride(WKContextConfigurationRef configuration);
+WK_EXPORT void WKContextConfigurationSetDiskCacheSizeOverride(WKContextConfigurationRef configuration, int64_t size);
+    
 #ifdef __cplusplus
 }
 #endif