Index: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h |
index 7385b2376f659b25bf8b963396f52472bd139cce..6e5667c07a418dfe63d16753ee04583e54d9b7c7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h |
@@ -31,6 +31,7 @@ |
#include "core/fetch/AccessControlStatus.h" |
#include "wtf/Allocator.h" |
#include "wtf/PassOwnPtr.h" |
+#include "wtf/text/CompressibleString.h" |
#include "wtf/text/TextPosition.h" |
#include "wtf/text/WTFString.h" |
#include <v8.h> |
@@ -50,7 +51,7 @@ public: |
// For the following methods, the caller sites have to hold |
// a HandleScope and a ContextScope. |
static v8::MaybeLocal<v8::Script> compileScript(const ScriptSourceCode&, v8::Isolate*, AccessControlStatus = SharableCrossOrigin, V8CacheOptions = V8CacheOptionsDefault); |
- static v8::MaybeLocal<v8::Script> compileScript(const String&, const String& fileName, const String& sourceMapUrl, const TextPosition&, v8::Isolate*, CachedMetadataHandler* = nullptr, AccessControlStatus = SharableCrossOrigin, V8CacheOptions = V8CacheOptionsDefault); |
+ static v8::MaybeLocal<v8::Script> compileScript(const CompressibleString&, const String& fileName, const String& sourceMapUrl, const TextPosition&, v8::Isolate*, CachedMetadataHandler* = nullptr, AccessControlStatus = SharableCrossOrigin, V8CacheOptions = V8CacheOptionsDefault); |
// CachedMetadataHandler is set when metadata caching is supported. For |
// normal scripe resources, CachedMetadataHandler is from ScriptResource. |
// For worker script, ScriptResource is null but CachedMetadataHandler may be |