| Index: Source/bindings/v8/V8PromiseUtilities.h
|
| diff --git a/Source/core/html/parser/HTMLParserThread.h b/Source/bindings/v8/V8PromiseUtilities.h
|
| similarity index 63%
|
| copy from Source/core/html/parser/HTMLParserThread.h
|
| copy to Source/bindings/v8/V8PromiseUtilities.h
|
| index 9e687de451a566e58e08b090d4beda41336584f0..2cc7ce2296d627b5340c326069bc568ca5a10e06 100644
|
| --- a/Source/core/html/parser/HTMLParserThread.h
|
| +++ b/Source/bindings/v8/V8PromiseUtilities.h
|
| @@ -28,27 +28,29 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef HTMLParserThread_h
|
| -#define HTMLParserThread_h
|
| +#ifndef V8PromiseUtilities_h
|
| +#define V8PromiseUtilities_h
|
|
|
| -#include "wtf/Functional.h"
|
| #include "wtf/OwnPtr.h"
|
| -#include "public/platform/WebThread.h"
|
| +#include "wtf/PassOwnPtr.h"
|
|
|
| -namespace WebCore {
|
| +#include <v8.h>
|
|
|
| -class HTMLParserThread {
|
| +namespace WebCore {
|
| +class V8PromiseUtilities {
|
| public:
|
| - static HTMLParserThread* shared();
|
| - void postTask(const Closure&);
|
| + static v8::Handle<v8::Function> promiseConstructor(v8::Isolate*);
|
| + static v8::Handle<v8::Value> promisePrototype(v8::Isolate*);
|
|
|
| -private:
|
| - HTMLParserThread();
|
| - ~HTMLParserThread();
|
| + static v8::Handle<v8::Function> promiseResolverConstructor(v8::Isolate*);
|
| + static v8::Handle<v8::Value> promiseResolverPrototype(v8::Isolate*);
|
|
|
| - OwnPtr<WebKit::WebThread> m_thread;
|
| + static v8::Handle<v8::Value> callUnwrappedMethod(const char* name, const v8::FunctionCallbackInfo<v8::Value>& args, v8::Handle<v8::Value> prototype);
|
| + static v8::Handle<v8::Value> callUnwrappedMethod(const char* name, v8::Handle<v8::Object> thisObject,
|
| + int argc, v8::Handle<v8::Value> argv[], v8::Isolate*, v8::Handle<v8::Value> prototype);
|
| + static v8::Handle<v8::Value> callStatic(const char* name, const v8::FunctionCallbackInfo<v8::Value>& args, v8::Handle<v8::Value> constructor);
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // HTMLParserThread_h
|
| +#endif // V8PromiseUtilities_h
|
|
|