Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h |
| index 4da92c9578bc9818e7eb1d6572292693cc79929e..8cbdc884c8904e1e93586efee5ea9073b82283a4 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h |
| +++ b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h |
| @@ -40,6 +40,7 @@ |
| #include "wtf/Allocator.h" |
| #include "wtf/OwnPtr.h" |
| #include "wtf/ThreadingPrimitives.h" |
| +#include "wtf/Vector.h" |
| #include "wtf/text/TextPosition.h" |
| #include <v8.h> |
| @@ -51,10 +52,13 @@ class ExceptionState; |
| class ScriptSourceCode; |
| class WorkerOrWorkletGlobalScope; |
| +typedef WTF::Vector<v8::Extension*> V8Extensions; |
|
yhirano
2016/04/22 02:28:10
Please use |using|.
|
| + |
| class CORE_EXPORT WorkerOrWorkletScriptController : public GarbageCollectedFinalized<WorkerOrWorkletScriptController> { |
| WTF_MAKE_NONCOPYABLE(WorkerOrWorkletScriptController); |
| public: |
| static WorkerOrWorkletScriptController* create(WorkerOrWorkletGlobalScope*, v8::Isolate*); |
| + static void registerExtensionIfNeeded(v8::Extension*); |
| virtual ~WorkerOrWorkletScriptController(); |
| void dispose(); |
| @@ -96,6 +100,7 @@ public: |
| private: |
| WorkerOrWorkletScriptController(WorkerOrWorkletGlobalScope*, v8::Isolate*); |
| class ExecutionState; |
| + static V8Extensions& registeredExtensions(); |
| // Evaluate a script file in the current execution environment. |
| ScriptValue evaluate(const CompressibleString& script, const String& fileName, const TextPosition& scriptStartPosition, CachedMetadataHandler*, V8CacheOptions); |