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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix Created 5 years, 1 month 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/bindings/core/v8/V8PerIsolateData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
index 2566da7cfc1d019640f96116011baa5cc0d61411..0e532d32de618506df8d8e53d2e25bc9e56cd497 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
@@ -34,6 +34,7 @@
#include "core/inspector/ScriptDebuggerBase.h"
#include "gin/public/isolate_holder.h"
#include "gin/public/v8_idle_task_runner.h"
+#include "platform/text/CompressableString.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
@@ -127,6 +128,10 @@ public:
void setScriptDebugger(PassOwnPtr<ScriptDebuggerBase>);
+ void addCompressableString(const CompressableString&);
+
+ void compressStrings();
+
private:
V8PerIsolateData();
~V8PerIsolateData();
@@ -162,6 +167,8 @@ private:
Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks;
OwnPtr<ScriptDebuggerBase> m_scriptDebugger;
+
+ HashSet<RefPtr<CompressableStringImpl>> m_compressableStrings;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698