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

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

Issue 1670113002: DO NOT COMMIT: Actual compression in CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 b7b3548031c167d5a40fd95be3022b751b60cb20..9a23dac6111be0270779da55fb5361a10b0f3af6 100644
--- a/third_party/WebKit/Source/platform/text/CompressibleString.h
+++ b/third_party/WebKit/Source/platform/text/CompressibleString.h
@@ -21,7 +21,9 @@ public:
CompressibleStringImpl()
: m_string()
- , m_isCompressed(false)
+ , m_originalLength(0)
+ , m_compressedData(nullptr)
+ , m_compressedDataSize(0)
{
}
@@ -30,7 +32,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(); }
@@ -69,7 +71,9 @@ public:
private:
String m_string;
- bool m_isCompressed;
+ unsigned m_originalLength;
+ void* m_compressedData;
+ unsigned m_compressedDataSize;
};
class PLATFORM_EXPORT CompressibleString final {
« no previous file with comments | « third_party/WebKit/Source/platform/blink_platform.gyp ('k') | third_party/WebKit/Source/platform/text/CompressibleString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698