Index: Source/core/xmlhttprequest/XMLHttpRequest.h |
diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.h b/Source/core/xmlhttprequest/XMLHttpRequest.h |
index e7f4fd191bbb04af8289ec533203a3474016f491..fce08aa2919f52e118880fbe196378e8b19c72e8 100644 |
--- a/Source/core/xmlhttprequest/XMLHttpRequest.h |
+++ b/Source/core/xmlhttprequest/XMLHttpRequest.h |
@@ -51,6 +51,7 @@ class Document; |
class DocumentParser; |
class ExceptionState; |
class ReadableStream; |
+class ScriptState; |
class SecurityOrigin; |
class SharedBuffer; |
class Stream; |
@@ -71,7 +72,8 @@ class XMLHttpRequest final |
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(XMLHttpRequest); |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); |
public: |
- static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, PassRefPtr<SecurityOrigin> = nullptr); |
+ static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ScriptState*); |
+ static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*); |
virtual ~XMLHttpRequest(); |
// These exact numeric values are important because JS expects them. |