Index: third_party/WebKit/Source/modules/fetch/Response.h |
diff --git a/third_party/WebKit/Source/modules/fetch/Response.h b/third_party/WebKit/Source/modules/fetch/Response.h |
index 2244e61f563adc4b8a8635c2561490623cd0e840..b7433d54f6049887536e49fb8f3a3ace65a4da43 100644 |
--- a/third_party/WebKit/Source/modules/fetch/Response.h |
+++ b/third_party/WebKit/Source/modules/fetch/Response.h |
@@ -6,7 +6,6 @@ |
#define Response_h |
#include "bindings/core/v8/Dictionary.h" |
-#include "bindings/core/v8/ScriptValue.h" |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "bindings/modules/v8/UnionTypesModules.h" |
#include "modules/ModulesExport.h" |
@@ -25,8 +24,9 @@ |
class ExceptionState; |
class FetchDataConsumerHandle; |
class ResponseInit; |
-class ScriptState; |
class WebServiceWorkerResponse; |
+ |
+typedef BlobOrArrayBufferOrArrayBufferViewOrFormDataOrUSVString BodyInit; |
class MODULES_EXPORT Response final : public Body { |
DEFINE_WRAPPERTYPEINFO(); |
@@ -35,8 +35,8 @@ |
~Response() override { } |
// From Response.idl: |
- static Response* create(ScriptState*, ExceptionState&); |
- static Response* create(ScriptState*, ScriptValue body, const Dictionary&, ExceptionState&); |
+ static Response* create(ExecutionContext*, ExceptionState&); |
+ static Response* create(ExecutionContext*, const BodyInit&, const Dictionary&, ExceptionState&); |
static Response* create(ExecutionContext*, PassOwnPtr<FetchDataConsumerHandle> bodyHandle, const String& contentType, const ResponseInit&, ExceptionState&); |
static Response* create(ExecutionContext*, FetchResponseData*); |