diff options
Diffstat (limited to 'WebCore/platform/ThreadGlobalData.h')
-rw-r--r-- | WebCore/platform/ThreadGlobalData.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/WebCore/platform/ThreadGlobalData.h b/WebCore/platform/ThreadGlobalData.h index 9f7865d..9f57f00 100644 --- a/WebCore/platform/ThreadGlobalData.h +++ b/WebCore/platform/ThreadGlobalData.h @@ -27,10 +27,10 @@ #ifndef ThreadGlobalData_h #define ThreadGlobalData_h -#include "StringHash.h" #include <wtf/HashMap.h> #include <wtf/HashSet.h> #include <wtf/Noncopyable.h> +#include <wtf/text/StringHash.h> #if ENABLE(WORKERS) #include <wtf/ThreadSpecific.h> @@ -49,13 +49,12 @@ namespace WebCore { public: ThreadGlobalData(); ~ThreadGlobalData(); + void destroy(); // called on workers to clean up the ThreadGlobalData before the thread exits. EventNames& eventNames() { return *m_eventNames; } - StringImpl* emptyString() { return m_emptyString; } - HashSet<StringImpl*>& atomicStringTable() { return *m_atomicStringTable; } ThreadTimers& threadTimers() { return *m_threadTimers; } -#if USE(ICU_UNICODE) || USE(GLIB_ICU_UNICODE_HYBRID) +#if USE(ICU_UNICODE) ICUConverterWrapper& cachedConverterICU() { return *m_cachedConverterICU; } #endif @@ -64,8 +63,6 @@ namespace WebCore { #endif private: - StringImpl* m_emptyString; - HashSet<StringImpl*>* m_atomicStringTable; EventNames* m_eventNames; ThreadTimers* m_threadTimers; @@ -73,7 +70,7 @@ namespace WebCore { bool m_isMainThread; #endif -#if USE(ICU_UNICODE) || USE(GLIB_ICU_UNICODE_HYBRID) +#if USE(ICU_UNICODE) ICUConverterWrapper* m_cachedConverterICU; #endif |