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

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

Issue 307063002: ServiceWorker: Add a Response ctor that accepts the body as a Blob (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: simpler Created 6 years, 7 months 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 6932144b1b650c77f22d05d9c56c367bd468098d..549963d674f7bc83f706eb492824e770c5f6572e 100644
--- a/Source/modules/serviceworkers/Response.h
+++ b/Source/modules/serviceworkers/Response.h
@@ -16,12 +16,13 @@ namespace blink { class WebServiceWorkerResponse; }
namespace WebCore {
+class Blob;
struct ResponseInit;
class Response FINAL : public ScriptWrappable, public RefCounted<Response> {
public:
- static PassRefPtr<Response> create();
static PassRefPtr<Response> create(const Dictionary& responseInit);
+ static PassRefPtr<Response> create(Blob* body, const Dictionary& responseInit);
~Response() { };
unsigned short status() const { return m_status; }
@@ -31,10 +32,11 @@ public:
void populateWebServiceWorkerResponse(blink::WebServiceWorkerResponse&);
private:
- explicit Response(const ResponseInit&);
+ Response(const String& blobUUID, const ResponseInit&);
unsigned short m_status;
String m_statusText;
RefPtr<HeaderMap> m_headers;
+ String m_blobUUID;
kinuko 2014/05/30 12:53:15 I think this should hold a reference to Blob (or,
michaeln1 2014/05/30 20:09:35 yup, the ctor probably should take as input a ptr
falken 2014/06/02 03:55:27 I see! Done.
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698