Index: Source/core/workers/WorkerV8Isolate.h |
diff --git a/Source/core/workers/WorkerV8Isolate.h b/Source/core/workers/WorkerV8Isolate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ddc71741fae49c788687a8c6bda247691ab16df |
--- /dev/null |
+++ b/Source/core/workers/WorkerV8Isolate.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WorkerV8Isolate_h |
+#define WorkerV8Isolate_h |
+ |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
+#include <v8.h> |
+ |
+namespace blink { |
+ |
+class V8IsolateInterruptor; |
kinuko
2015/05/26 14:41:25
nit: Not referred in this file?
sadrul
2015/05/27 01:28:00
Good catch. Removed.
|
+ |
+class WorkerV8Isolate { |
+public: |
+ static PassOwnPtr<WorkerV8Isolate> createDefault(); |
+ virtual ~WorkerV8Isolate() { } |
+ |
+ virtual v8::Isolate* isolate() const = 0; |
+ virtual void willDestroy() = 0; |
+ virtual void terminateExecution() = 0; |
+ |
+protected: |
+ WorkerV8Isolate() { } |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WorkerV8Isolate_h |