Chromium Code Reviews| Index: third_party/WebKit/Source/wtf/WTFThreadData.h |
| diff --git a/third_party/WebKit/Source/wtf/WTFThreadData.h b/third_party/WebKit/Source/wtf/WTFThreadData.h |
| index 0dbd7e7c6baad8383340a53c35bf04bf1b21fec1..a268af1816fa138ec7e49e9ed498bab06e5e6e74 100644 |
| --- a/third_party/WebKit/Source/wtf/WTFThreadData.h |
| +++ b/third_party/WebKit/Source/wtf/WTFThreadData.h |
| @@ -35,12 +35,19 @@ |
| #include "wtf/WTFExport.h" |
| #include "wtf/text/StringHash.h" |
| +namespace blink { |
| + |
| +class CompressibleStringTable; |
| + |
| +} // namespace blink |
| + |
| namespace WTF { |
| class AtomicStringTable; |
| struct ICUConverterWrapper; |
| typedef void (*AtomicStringTableDestructor)(AtomicStringTable*); |
| +typedef void (*CompressibleStringTableDestructor)(blink::CompressibleStringTable*); |
|
haraken
2015/11/26 11:50:03
Hmm, it's not nice to write 'blink::' in wtf. It's
hajimehoshi
2015/11/27 11:03:58
Sure, I'll move this to wtf soon again.
hajimehoshi
2015/11/30 05:26:59
We found that CompressibleString depends on blink:
|
| class WTF_EXPORT WTFThreadData { |
| WTF_MAKE_NONCOPYABLE(WTFThreadData); |
| @@ -53,16 +60,24 @@ public: |
| return m_atomicStringTable; |
| } |
| + blink::CompressibleStringTable* compressibleStringTable() |
| + { |
| + return m_compressibleStringTable; |
| + } |
| + |
| ICUConverterWrapper& cachedConverterICU() { return *m_cachedConverterICU; } |
| private: |
| AtomicStringTable* m_atomicStringTable; |
| AtomicStringTableDestructor m_atomicStringTableDestructor; |
| + blink::CompressibleStringTable* m_compressibleStringTable; |
| + CompressibleStringTableDestructor m_compressibleStringTableDestructor; |
| OwnPtr<ICUConverterWrapper> m_cachedConverterICU; |
| static ThreadSpecific<WTFThreadData>* staticData; |
| friend WTFThreadData& wtfThreadData(); |
| friend class AtomicStringTable; |
| + friend class blink::CompressibleStringTable; |
| }; |
| inline WTFThreadData& wtfThreadData() |