#ifndef V8_V8_PLATFORM_H_
#define V8_V8_PLATFORM_H_
-#include "v8.h"
-
namespace v8 {
+class Isolate;
+
/**
* A Task represents a unit of work.
*/
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
* scheduling. The definition of "foreground" is opaque to V8.
*/
virtual void CallOnForegroundThread(Isolate* isolate, Task* task) = 0;
-
- protected:
- virtual ~Platform() {}
};
} // namespace v8