[Webkit-unassigned] [Bug 111845] [SOUP] Soup disk cache should respect the diskCacheDirectory from the process initial parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 9 01:04:50 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=111845





--- Comment #8 from Carlos Garcia Campos <cgarcia at igalia.com>  2013-03-09 01:07:14 PST ---
(In reply to comment #7)
> (From update of attachment 192202 [details])
> There are two ways to set this: WebContext::platformDefaultDiskCacheDirectory and WKContextSetDiskCacheDirectory.
> 
> From a quick look, it looks like we should get rid of platformDefaultDiskCacheDirectory and unify something around WKContextSetDiskCacheDirectory. It is silly to have two path. Any opinion?

For me they are not two ways, platformDefaultDiskCacheDirectory() defines the default disk cache directory for the platform. WKContextSetDiskCacheDirectory overrides the default directory. The good thing of having a default disk cache directory defined in the WebContext is that you don't need to explicitly set a disk cache from the API or from apps, unless you want to override the default. Note that platformDefaultDiskCacheDirectory() is private, so it's not supposed to be a way for the API layer to set a disck cache directory, but to define an internal default. All other directories (database, local storage, cookie storage, etc.) use the same approach.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list