Changeset 31878 in webkit


Ignore:
Timestamp:
Apr 14, 2008 1:18:18 PM (16 years ago)
Author:
alp@webkit.org
Message:

2008-04-14 Xan Lopez <xan@gnome.org>

Reviewed by Alp Toker.

http://bugs.webkit.org/show_bug.cgi?id=17917
Bug 17917: Cookie support for HTTP soup backend

Initial implementation of cookies for the http soup backend.

Moved CookieJarGtk to CookieJarSoup in network/soup and left the original
one as CookieJarCurl in network/curl.

Bumped the libsoup required version to 2.23 for cookie support.

Location:
trunk
Files:
2 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r31821 r31878  
     12008-04-14  Xan Lopez  <xan@gnome.org>
     2
     3        Reviewed by Alp Toker.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=17917
     6        Bug 17917: Cookie support for HTTP soup backend
     7
     8        Bumped the libsoup required version to 2.23 for cookie support.
     9
     10        * configure.ac:
     11
    1122008-04-11  Mark Rowe  <mrowe@apple.com>
    213
  • trunk/WebCore/ChangeLog

    r31877 r31878  
     12008-04-14  Xan Lopez  <xan@gnome.org>
     2
     3        Reviewed by Alp Toker.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=17917
     6        Bug 17917: Cookie support for HTTP soup backend
     7
     8        Initial implementation of cookies for the http soup backend.
     9
     10        Moved CookieJarGtk to CookieJarSoup in network/soup and left the original
     11        one as CookieJarCurl in network/curl.
     12
     13        * GNUmakefile.am:
     14        * platform/CookieJar.h:
     15        * platform/network/curl/CookieJarCurl.cpp: Renamed from WebCore/platform/gtk/CookieJarGtk.cpp.
     16        (WebCore::setCookies):
     17        (WebCore::cookies):
     18        * platform/network/soup/CookieJarSoup.cpp: Added.
     19        (WebCore::getCookieJar):
     20        (WebCore::setCookies):
     21        (WebCore::cookies):
     22        * platform/network/soup/ResourceHandleSoup.cpp:
     23        (WebCore::ResourceHandle::start):
     24
    1252008-04-14  Holger Freyther  <zecke@selfish.org>
    226
  • trunk/WebCore/GNUmakefile.am

    r31873 r31878  
    991991        WebCore/page/gtk/DragControllerGtk.cpp \
    992992        WebCore/platform/gtk/ClipboardGtk.cpp \
    993         WebCore/platform/gtk/CookieJarGtk.cpp \
    994993        WebCore/platform/gtk/CursorGtk.cpp \
    995994        WebCore/platform/gtk/ContextMenuGtk.cpp \
     
    10531052
    10541053webcore_sources += \
     1054        WebCore/platform/network/curl/CookieJarCurl.cpp \
    10551055        WebCore/platform/network/curl/ResourceHandleCurl.cpp \
    10561056        WebCore/platform/network/curl/ResourceHandleManager.cpp
     
    10641064
    10651065webcore_sources += \
     1066        WebCore/platform/network/soup/CookieJarSoup.cpp \
    10661067        WebCore/platform/network/soup/ResourceHandleSoup.cpp
    10671068endif
  • trunk/WebCore/platform/CookieJar.h

    r29566 r31878  
    2727#define CookieJar_h
    2828
     29#if USE(SOUP)
     30#include <libsoup/soup.h>
     31#endif
     32
    2933namespace WebCore {
    3034
     
    3640    void setCookies(Document* document, const KURL&, const KURL& policyBaseURL, const String&);
    3741    bool cookiesEnabled(const Document* document);
    38 
     42#if USE(SOUP)
     43    SoupCookieJar* getCookieJar(void);
     44#endif
    3945}
    4046
  • trunk/WebCore/platform/network/soup/ResourceHandleSoup.cpp

    r31852 r31878  
    3333#include "ResourceHandleInternal.h"
    3434#include "ResourceResponse.h"
     35#include "CookieJar.h"
    3536
    3637#include <libsoup/soup.h>
     
    286287    if (!session) {
    287288        session = soup_session_async_new();
     289
     290        soup_session_add_feature(session, SOUP_SESSION_FEATURE(getCookieJar()));
     291
    288292        const char* soup_debug = g_getenv("WEBKIT_SOUP_LOGGING");
    289293        if (soup_debug) {
  • trunk/configure.ac

    r31681 r31878  
    224224# optional modules
    225225LIBCURL_REQUIRED_VERSION=7.15
    226 LIBSOUP_REQUIRED_VERSION=2.4
     226LIBSOUP_REQUIRED_VERSION=2.23
    227227LIBXSLT_REQUIRED_VERSION=1.1.7
    228228SQLITE_REQUIRED_VERSION=3.0
Note: See TracChangeset for help on using the changeset viewer.