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

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

Issue 1583263002: Experimental CompressibleString UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adopt lazy-initializing way 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
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 41526e2c4752d969ef217f79eadf6c48fdeced38..6f7b0d73fccce82644cbb5cc9c2f26085b995be0 100644
--- a/third_party/WebKit/Source/wtf/WTFThreadData.h
+++ b/third_party/WebKit/Source/wtf/WTFThreadData.h
@@ -35,6 +35,16 @@
#include "wtf/WTFExport.h"
#include "wtf/text/StringHash.h"
+namespace blink {
+
+// TODO(hajimehoshi): CompressibleStringTable should be moved from blink to WTF
+// namespace. Fix this forward declaration when we do this.
+class CompressibleStringTable;
+
+typedef void (*CompressibleStringTableDestructor)(CompressibleStringTable*);
+
+}
+
namespace WTF {
class AtomicStringTable;
@@ -54,16 +64,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;
+ blink::CompressibleStringTableDestructor m_compressibleStringTableDestructor;
OwnPtr<ICUConverterWrapper> m_cachedConverterICU;
static ThreadSpecific<WTFThreadData>* staticData;
friend WTFThreadData& wtfThreadData();
friend class AtomicStringTable;
+ friend class blink::CompressibleStringTable;
};
inline WTFThreadData& wtfThreadData()
« no previous file with comments | « third_party/WebKit/Source/platform/text/CompressibleString.cpp ('k') | third_party/WebKit/Source/wtf/WTFThreadData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698