Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: third_party/WebKit/Source/wtf/WTFThreadData.h

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto crrev.com/1564773002 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/BUILD.gn ('k') | third_party/WebKit/Source/wtf/WTFThreadData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f94527efda89b26dd6c4a49c7e37df0d93d3e201 100644
--- a/third_party/WebKit/Source/wtf/WTFThreadData.h
+++ b/third_party/WebKit/Source/wtf/WTFThreadData.h
@@ -38,9 +38,11 @@
namespace WTF {
class AtomicStringTable;
+class CompressibleStringTable;
struct ICUConverterWrapper;
typedef void (*AtomicStringTableDestructor)(AtomicStringTable*);
+typedef void (*CompressibleStringTableDestructor)(CompressibleStringTable*);
class WTF_EXPORT WTFThreadData {
WTF_MAKE_NONCOPYABLE(WTFThreadData);
@@ -53,16 +55,24 @@ public:
return m_atomicStringTable;
}
+ CompressibleStringTable* compressibleStringTable()
+ {
+ return m_compressibleStringTable;
+ }
+
ICUConverterWrapper& cachedConverterICU() { return *m_cachedConverterICU; }
private:
AtomicStringTable* m_atomicStringTable;
AtomicStringTableDestructor m_atomicStringTableDestructor;
+ CompressibleStringTable* m_compressibleStringTable;
+ CompressibleStringTableDestructor m_compressibleStringTableDestructor;
OwnPtr<ICUConverterWrapper> m_cachedConverterICU;
static ThreadSpecific<WTFThreadData>* staticData;
friend WTFThreadData& wtfThreadData();
friend class AtomicStringTable;
+ friend class CompressibleStringTable;
};
inline WTFThreadData& wtfThreadData()
« no previous file with comments | « third_party/WebKit/Source/wtf/BUILD.gn ('k') | third_party/WebKit/Source/wtf/WTFThreadData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698