summaryrefslogtreecommitdiff
path: root/deps/v8/include/v8-platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/include/v8-platform.h')
-rw-r--r--deps/v8/include/v8-platform.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/deps/v8/include/v8-platform.h b/deps/v8/include/v8-platform.h
index 5667211c3..1f1679f0e 100644
--- a/deps/v8/include/v8-platform.h
+++ b/deps/v8/include/v8-platform.h
@@ -5,10 +5,10 @@
#ifndef V8_V8_PLATFORM_H_
#define V8_V8_PLATFORM_H_
-#include "v8.h"
-
namespace v8 {
+class Isolate;
+
/**
* A Task represents a unit of work.
*/
@@ -37,6 +37,8 @@ class Platform {
kLongRunningTask
};
+ virtual ~Platform() {}
+
/**
* Schedules a task to be invoked on a background thread. |expected_runtime|
* indicates that the task will run a long time. The Platform implementation
@@ -53,9 +55,6 @@ class Platform {
* scheduling. The definition of "foreground" is opaque to V8.
*/
virtual void CallOnForegroundThread(Isolate* isolate, Task* task) = 0;
-
- protected:
- virtual ~Platform() {}
};
} // namespace v8