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

Unified Diff: third_party/WebKit/Source/platform/text/CompressibleString.h

Issue 2130683002: [Experiment] purge-and-suspend Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/platform/text/CompressibleString.h
diff --git a/third_party/WebKit/Source/platform/text/CompressibleString.h b/third_party/WebKit/Source/platform/text/CompressibleString.h
index 0ab99cf644b5376a25ab29af06e406fc2bbb752b..55b6820ee461383fda9f265c13fb2670d12f2232 100644
--- a/third_party/WebKit/Source/platform/text/CompressibleString.h
+++ b/third_party/WebKit/Source/platform/text/CompressibleString.h
@@ -22,7 +22,9 @@ public:
CompressibleStringImpl()
: m_string()
- , m_isCompressed(false)
+ , m_originalLength(0)
+ , m_compressedData(nullptr)
+ , m_compressedDataSize(0)
{
}
@@ -31,7 +33,7 @@ public:
bool isEmpty() const { return originalLength() == 0; }
- bool isCompressed() const { return m_isCompressed; }
+ bool isCompressed() const { return m_compressedData; }
unsigned originalLength() const { return m_string.length(); }
bool is8Bit() const { return m_string.is8Bit(); }
@@ -70,7 +72,9 @@ public:
private:
String m_string;
- bool m_isCompressed;
+ unsigned m_originalLength;
+ void* m_compressedData;
+ unsigned m_compressedDataSize;
};
class PLATFORM_EXPORT CompressibleString final {

Powered by Google App Engine
This is Rietveld 408576698