| 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..23e597a2e70e94a6c63b2f88f6a3067b27babc75 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"
|
| @@ -43,6 +44,7 @@ namespace blink {
|
|
|
| class ErrorEvent;
|
| class ExceptionState;
|
| +class CachedMetadataHandler;
|
| class ScriptSourceCode;
|
| class WorkerGlobalScope;
|
|
|
| @@ -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>* = 0, CachedMetadataHandler* = 0, 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;
|
|
|