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

Unified Diff: Source/modules/serviceworkers/Response.h

Issue 701683005: Service Workers/Fetch: Fix Response constructor for empty/null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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: Source/modules/serviceworkers/Response.h
diff --git a/Source/modules/serviceworkers/Response.h b/Source/modules/serviceworkers/Response.h
index 65d89bab4497e9b86b3438e62848d1dc35ac5bd1..87f96d8673a6991fb3d4afa2a1fa29464406e000 100644
--- a/Source/modules/serviceworkers/Response.h
+++ b/Source/modules/serviceworkers/Response.h
@@ -26,10 +26,13 @@ class Response final : public Body {
DEFINE_WRAPPERTYPEINFO();
public:
virtual ~Response() { }
+ // Constructors from Response.idl:
+ static Response* create(ExecutionContext*, ExceptionState&);
static Response* create(ExecutionContext*, Blob*, const Dictionary&, ExceptionState&);
static Response* create(ExecutionContext*, const String&, const Dictionary&, ExceptionState&);
static Response* create(ExecutionContext*, const DOMArrayBuffer*, const Dictionary&, ExceptionState&);
static Response* create(ExecutionContext*, const DOMArrayBufferView*, const Dictionary&, ExceptionState&);
+
static Response* create(ExecutionContext*, Blob*, const ResponseInit&, ExceptionState&);
static Response* create(ExecutionContext*, FetchResponseData*);
static Response* create(ExecutionContext*, const WebServiceWorkerResponse&);
@@ -39,12 +42,14 @@ public:
const FetchResponseData* response() const { return m_response; }
+ // From Response.idl:
String type() const;
String url() const;
unsigned short status() const;
String statusText() const;
Headers* headers() const;
+ // From Response.idl:
Response* clone() const;
void populateWebServiceWorkerResponse(WebServiceWorkerResponse&);
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/response-content-worker.js ('k') | Source/modules/serviceworkers/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698