Index: Source/bindings/core/v8/WorkerScriptController.h |
diff --git a/Source/bindings/core/v8/WorkerScriptController.h b/Source/bindings/core/v8/WorkerScriptController.h |
index 695df6b1b614d3e1fbebd7cb15ab903677443f53..557ad29ddcb28c7cfe75cab6d06b391983589996 100644 |
--- a/Source/bindings/core/v8/WorkerScriptController.h |
+++ b/Source/bindings/core/v8/WorkerScriptController.h |
@@ -34,6 +34,7 @@ |
#include "bindings/core/v8/RejectedPromises.h" |
#include "bindings/core/v8/ScriptValue.h" |
#include "bindings/core/v8/V8Binding.h" |
+#include "bindings/core/v8/V8CacheOptions.h" |
#include "wtf/OwnPtr.h" |
#include "wtf/ThreadingPrimitives.h" |
#include "wtf/text/TextPosition.h" |
@@ -41,6 +42,7 @@ |
namespace blink { |
+class CachedMetadataHandler; |
class ErrorEvent; |
class ExceptionState; |
class ScriptSourceCode; |
@@ -55,7 +57,7 @@ public: |
bool isExecutionTerminating() const; |
// Returns true if the evaluation completed with no uncaught exception. |
- bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = 0); |
+ bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = nullptr, CachedMetadataHandler* = nullptr, V8CacheOptions = V8CacheOptionsDefault); |
// Prevents future JavaScript execution. See |
// scheduleExecutionTermination, isExecutionForbidden. |
@@ -93,7 +95,7 @@ private: |
bool isContextInitialized() { return m_scriptState && !!m_scriptState->perContextData(); } |
// Evaluate a script file in the current execution environment. |
- ScriptValue evaluate(const String& script, const String& fileName, const TextPosition& scriptStartPosition); |
+ ScriptValue evaluate(const String& script, const String& fileName, const TextPosition& scriptStartPosition, CachedMetadataHandler*, V8CacheOptions); |
v8::Isolate* m_isolate; |
WorkerGlobalScope& m_workerGlobalScope; |