Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Unified Diff: third_party/WebKit/Source/modules/fetch/Response.h

Issue 1527493002: Revert of Response construction with a ReadableStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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*);

Powered by Google App Engine
This is Rietveld 408576698