Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WorkerV8Isolate_h | |
| 6 #define WorkerV8Isolate_h | |
| 7 | |
| 8 #include "wtf/OwnPtr.h" | |
| 9 #include "wtf/PassOwnPtr.h" | |
| 10 #include <v8.h> | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 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.
| |
| 15 | |
| 16 class WorkerV8Isolate { | |
| 17 public: | |
| 18 static PassOwnPtr<WorkerV8Isolate> createDefault(); | |
| 19 virtual ~WorkerV8Isolate() { } | |
| 20 | |
| 21 virtual v8::Isolate* isolate() const = 0; | |
| 22 virtual void willDestroy() = 0; | |
| 23 virtual void terminateExecution() = 0; | |
| 24 | |
| 25 protected: | |
| 26 WorkerV8Isolate() { } | |
| 27 }; | |
| 28 | |
| 29 } // namespace blink | |
| 30 | |
| 31 #endif // WorkerV8Isolate_h | |
| OLD | NEW |