• carlosgc@webkit.org's avatar
    [GTK] Don't use the C API internally in WebKitCookieManager · d084e913
    carlosgc@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=96772
    
    Reviewed by Gustavo Noronha Silva.
    
    Using the C++ classes directly instead of the C API wrappers we
    avoid a lot of toImpl/toAPI casts, string conversions and
    allocations. The code is also a lot simpler and easier to read.
    
    * UIProcess/API/gtk/WebKitCookieManager.cpp:
    (_WebKitCookieManagerPrivate):
    (webkitCookieManagerFinalize):
    (webkitCookieManagerCreate):
    (webkit_cookie_manager_set_persistent_storage):
    (webkit_cookie_manager_set_accept_policy):
    (webkit_cookie_manager_get_accept_policy):
    (webkitCookieManagerGetDomainsWithCookiesCallback):
    (webkit_cookie_manager_get_domains_with_cookies):
    (webkit_cookie_manager_delete_cookies_for_domain):
    (webkit_cookie_manager_delete_all_cookies):
    * UIProcess/API/gtk/WebKitCookieManagerPrivate.h:
    * UIProcess/API/gtk/WebKitWebContext.cpp:
    (webkit_web_context_get_cookie_manager):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d084e913
WebKitCookieManager.cpp 13.4 KB