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

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

Issue 373613004: [ServiceWorker] Make Response class better conformance with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/ResponseInit.h
diff --git a/Source/modules/serviceworkers/ResponseInit.h b/Source/modules/serviceworkers/ResponseInit.h
index bda31bd5aa5efa060d908307e065a9ca6b326fbe..7cef14212341bbc2644567b4dc15f678ddb9664c 100644
--- a/Source/modules/serviceworkers/ResponseInit.h
+++ b/Source/modules/serviceworkers/ResponseInit.h
@@ -6,7 +6,7 @@
#define ResponseInit_h
#include "bindings/core/v8/Dictionary.h"
-#include "modules/serviceworkers/HeaderMap.h"
+#include "modules/serviceworkers/Headers.h"
#include "wtf/RefPtr.h"
namespace WebCore {
@@ -25,11 +25,15 @@ struct ResponseInit {
// FIXME: Spec uses ByteString for statusText. http://crbug.com/347426
options.get("statusText", statusText);
options.get("headers", headers);
+ if (!headers) {
+ options.get("headers", headersDictionary);
+ }
}
unsigned short status;
String statusText;
- RefPtr<HeaderMap> headers;
+ RefPtr<Headers> headers;
+ Dictionary headersDictionary;
falken 2014/07/07 08:10:40 We haven't been following it but I guess members s
horo 2014/07/07 10:19:44 Done.
};
}
« Source/modules/serviceworkers/Response.cpp ('K') | « Source/modules/serviceworkers/Response.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698