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 "core/CoreExport.h" | |
| 9 #include "wtf/OwnPtr.h" | |
| 10 #include "wtf/PassOwnPtr.h" | |
| 11 #include <v8.h> | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class CORE_EXPORT WorkerV8Isolate { | |
|
kinuko
2015/05/28 16:21:59
nit: please add class-level comment
sadrul
2015/05/28 16:51:56
Done.
| |
| 16 public: | |
| 17 static PassOwnPtr<WorkerV8Isolate> createDefault(); | |
| 18 virtual ~WorkerV8Isolate() { } | |
| 19 | |
| 20 virtual v8::Isolate* isolate() const = 0; | |
| 21 virtual void willDestroy() = 0; | |
| 22 virtual void terminateExecution() = 0; | |
| 23 | |
| 24 protected: | |
| 25 WorkerV8Isolate() { } | |
| 26 }; | |
| 27 | |
| 28 } // namespace blink | |
| 29 | |
| 30 #endif // WorkerV8Isolate_h | |
| OLD | NEW |