Changeset 66986 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 8, 2010, 8:27:17 AM (15 years ago)
Author:
Martin Robinson
Message:

2010-09-08 Martin Robinson <[email protected]>

Reviewed by Xan Lopez.

[GTK] Need a WebSocket implementation
https://bugs.webkit.org/show_bug.cgi?id=45197

  • configure.ac: Enable WebSocket by default.

2010-09-08 Martin Robinson <[email protected]>

Reviewed by Xan Lopez.

[GTK] Need a WebSocket implementation
https://bugs.webkit.org/show_bug.cgi?id=45197

Add a GIO-based WebSocket implementation.

  • wtf/gobject/GRefPtr.cpp: Added PlatformRefPtr support for GSource. (WTF::refPlatformPtr): (WTF::derefPlatformPtr):
  • wtf/gobject/GRefPtr.h: Added new template specialization declarations.
  • wtf/gobject/GTypedefs.h: Add some more GLib/GIO forward declarations.

2010-09-08 Martin Robinson <[email protected]>

Reviewed by Xan Lopez.

[GTK] Need a WebSocket implementation
https://bugs.webkit.org/show_bug.cgi?id=45197

  • platform/gtk/Skipped: Unskip all WebSocket tests, as they are passing.

2010-09-08 Martin Robinson <[email protected]>

Reviewed by Xan Lopez.

[GTK] Need a WebSocket implementation
https://bugs.webkit.org/show_bug.cgi?id=45197

Add a GIO-based WebSocket implementation. This does not yet support
SSL sockets or proxies, but these should be possible to add as support
arrives in GLib/GIO for them.

  • platform/network/soup/SocketStreamHandle.h:
  • platform/network/soup/SocketStreamHandleSoup.cpp: Add a GIO-based WebSocket implementation. (WebCore::isActiveHandle): Added. (WebCore::deactivateHandle): Added. (WebCore::SocketStreamHandle::SocketStreamHandle): Filled out stub. (WebCore::SocketStreamHandle::~SocketStreamHandle): Ditto. (WebCore::SocketStreamHandle::connected): Added. (WebCore::SocketStreamHandle::readBytes): Added. (WebCore::SocketStreamHandle::writeReady): Added. (WebCore::SocketStreamHandle::platformSend): Filled out stub. (WebCore::SocketStreamHandle::platformClose): Filled out stub. (WebCore::SocketStreamHandle::beginWaitingForSocketWritability): Added. (WebCore::SocketStreamHandle::stopWaitingForSocketWritability): (WebCore::connectedCallback): Added. (WebCore::readReadyCallback): Added. (WebCore::writeReadyCallback): Added.
Location:
trunk/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r66968 r66986  
     12010-09-08  Martin Robinson  <[email protected]>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Need a WebSocket implementation
     6        https://bugs.webkit.org/show_bug.cgi?id=45197
     7
     8        Add a GIO-based WebSocket implementation.
     9
     10        * wtf/gobject/GRefPtr.cpp: Added PlatformRefPtr support for GSource.
     11        (WTF::refPlatformPtr):
     12        (WTF::derefPlatformPtr):
     13        * wtf/gobject/GRefPtr.h: Added new template specialization declarations.
     14        * wtf/gobject/GTypedefs.h: Add some more GLib/GIO forward declarations.
     15
    1162010-08-30  Maciej Stachowiak  <[email protected]>
    217
  • trunk/JavaScriptCore/wtf/gobject/GRefPtr.cpp

    r66024 r66986  
    6767#endif
    6868
     69template <> GSource* refPlatformPtr(GSource* ptr)
     70{
     71    if (ptr)
     72        g_source_ref(ptr);
     73    return ptr;
     74}
     75
     76template <> void derefPlatformPtr(GSource* ptr)
     77{
     78    if (ptr)
     79        g_source_unref(ptr);
     80}
     81
    6982} // namespace WTF
  • trunk/JavaScriptCore/wtf/gobject/GRefPtr.h

    r66531 r66986  
    3737template <> GVariant* refPlatformPtr(GVariant* ptr);
    3838template <> void derefPlatformPtr(GVariant* ptr);
     39template <> GSource* refPlatformPtr(GSource* ptr);
     40template <> void derefPlatformPtr(GSource* ptr);
    3941
    4042template <typename T> inline T* refPlatformPtr(T* ptr)
  • trunk/JavaScriptCore/wtf/gobject/GTypedefs.h

    r66738 r66986  
    3737typedef void* gpointer;
    3838
     39typedef struct _GAsyncResult GAsyncResult;
     40typedef struct _GCancellable GCancellable;
    3941typedef struct _GCond GCond;
    4042typedef struct _GDir GDir;
     
    4850typedef struct _GFile GFile;
    4951typedef struct _GHashTable GHashTable;
     52typedef struct _GInputStream GInputStream;
    5053typedef struct _GList GList;
    5154typedef struct _GMutex GMutex;
     55typedef struct _GOutputStream GOutputStream;
    5256typedef struct _GPatternSpec GPatternSpec;
     57typedef struct _GSocketClient GSocketClient;
     58typedef struct _GSocketConnection GSocketConnection;
     59typedef struct _GSource GSource;
    5360typedef struct _GVariant GVariant;
    5461typedef union _GdkEvent GdkEvent;
Note: See TracChangeset for help on using the changeset viewer.