Chromium Code Reviews| 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..179adcf384b00fb2c9031a0ef5e8241f17707226 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; |
|
vivekg
2015/02/16 09:20:09
nit: ditto
horo
2015/02/16 10:23:26
Done.
|
| 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>* = 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; |