Changeset 66986 in webkit for trunk/JavaScriptCore
- Timestamp:
- Sep 8, 2010, 8:27:17 AM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r66968 r66986 1 2010-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 1 16 2010-08-30 Maciej Stachowiak <[email protected]> 2 17 -
trunk/JavaScriptCore/wtf/gobject/GRefPtr.cpp
r66024 r66986 67 67 #endif 68 68 69 template <> GSource* refPlatformPtr(GSource* ptr) 70 { 71 if (ptr) 72 g_source_ref(ptr); 73 return ptr; 74 } 75 76 template <> void derefPlatformPtr(GSource* ptr) 77 { 78 if (ptr) 79 g_source_unref(ptr); 80 } 81 69 82 } // namespace WTF -
trunk/JavaScriptCore/wtf/gobject/GRefPtr.h
r66531 r66986 37 37 template <> GVariant* refPlatformPtr(GVariant* ptr); 38 38 template <> void derefPlatformPtr(GVariant* ptr); 39 template <> GSource* refPlatformPtr(GSource* ptr); 40 template <> void derefPlatformPtr(GSource* ptr); 39 41 40 42 template <typename T> inline T* refPlatformPtr(T* ptr) -
trunk/JavaScriptCore/wtf/gobject/GTypedefs.h
r66738 r66986 37 37 typedef void* gpointer; 38 38 39 typedef struct _GAsyncResult GAsyncResult; 40 typedef struct _GCancellable GCancellable; 39 41 typedef struct _GCond GCond; 40 42 typedef struct _GDir GDir; … … 48 50 typedef struct _GFile GFile; 49 51 typedef struct _GHashTable GHashTable; 52 typedef struct _GInputStream GInputStream; 50 53 typedef struct _GList GList; 51 54 typedef struct _GMutex GMutex; 55 typedef struct _GOutputStream GOutputStream; 52 56 typedef struct _GPatternSpec GPatternSpec; 57 typedef struct _GSocketClient GSocketClient; 58 typedef struct _GSocketConnection GSocketConnection; 59 typedef struct _GSource GSource; 53 60 typedef struct _GVariant GVariant; 54 61 typedef union _GdkEvent GdkEvent;
Note:
See TracChangeset
for help on using the changeset viewer.