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

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

Issue 1506023003: 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 b7433d54f6049887536e49fb8f3a3ace65a4da43..e3335d53bbe63592588117ed9fc981b2abd4cb53 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.h
+++ b/third_party/WebKit/Source/modules/fetch/Response.h
@@ -6,6 +6,7 @@
#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"
@@ -24,10 +25,9 @@ class DOMArrayBuffer;
class ExceptionState;
class FetchDataConsumerHandle;
class ResponseInit;
+class ScriptState;
class WebServiceWorkerResponse;
-typedef BlobOrArrayBufferOrArrayBufferViewOrFormDataOrUSVString BodyInit;
-
class MODULES_EXPORT Response final : public Body {
DEFINE_WRAPPERTYPEINFO();
WTF_MAKE_NONCOPYABLE(Response);
@@ -35,8 +35,8 @@ public:
~Response() override { }
// From Response.idl:
- static Response* create(ExecutionContext*, ExceptionState&);
- static Response* create(ExecutionContext*, const BodyInit&, const Dictionary&, ExceptionState&);
+ static Response* create(ScriptState*, ExceptionState&);
+ static Response* create(ScriptState*, ScriptValue body, const Dictionary&, ExceptionState&);
static Response* create(ExecutionContext*, PassOwnPtr<FetchDataConsumerHandle> bodyHandle, const String& contentType, const ResponseInit&, ExceptionState&);
static Response* create(ExecutionContext*, FetchResponseData*);
@@ -62,6 +62,7 @@ public:
// ActiveDOMObject
bool hasPendingActivity() const override;
+ void stop() override;
// Does not call response.setBlobDataHandle().
void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response */);
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Request.cpp ('k') | third_party/WebKit/Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698