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

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: Add DecompressingInForegroundTab 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 0dbd7e7c6baad8383340a53c35bf04bf1b21fec1..c2c26e9e95ac469c263b2c0692f4d0e900da8069 100644
--- a/third_party/WebKit/Source/wtf/WTFThreadData.h
+++ b/third_party/WebKit/Source/wtf/WTFThreadData.h
@@ -35,6 +35,14 @@
#include "wtf/WTFExport.h"
#include "wtf/text/StringHash.h"
+namespace blink {
haraken 2016/01/19 07:43:36 Add a TODO and mention that the blink namespace sh
hajimehoshi 2016/01/19 10:19:21 Done.
+
+class CompressibleStringTable;
+
+typedef void (*CompressibleStringTableDestructor)(CompressibleStringTable*);
+
+}
+
namespace WTF {
class AtomicStringTable;
@@ -53,16 +61,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()

Powered by Google App Engine
This is Rietveld 408576698