Chromium Code Reviews| Index: Source/modules/serviceworkers/RequestInit.h |
| diff --git a/Source/modules/serviceworkers/RequestInit.h b/Source/modules/serviceworkers/RequestInit.h |
| index 8e8461b60a4fc384a0d175ab6e82185f08cb8906..bc229ef6adf0ba3635a2179904952e58a5a940de 100644 |
| --- a/Source/modules/serviceworkers/RequestInit.h |
| +++ b/Source/modules/serviceworkers/RequestInit.h |
| @@ -6,24 +6,29 @@ |
| #define RequestInit_h |
| #include "bindings/core/v8/Dictionary.h" |
| -#include "modules/serviceworkers/HeaderMap.h" |
| +#include "modules/serviceworkers/Headers.h" |
| #include "wtf/RefPtr.h" |
| namespace WebCore { |
| struct RequestInit { |
| explicit RequestInit(const Dictionary& options) |
| - : method("GET") |
| { |
| - options.get("url", url); |
| // FIXME: Spec uses ByteString for method. http://crbug.com/347426 |
|
falken
2014/07/03 10:05:33
It looks like this FIXME is done?
horo
2014/07/03 12:40:30
Done.
|
| options.get("method", method); |
| options.get("headers", headers); |
| + if (!headers) { |
| + options.get("headers", headersDictionary); |
| + } |
| + options.get("mode", mode); |
| + options.get("credentials", credentials); |
| } |
| - String url; |
| String method; |
| - RefPtr<HeaderMap> headers; |
| + RefPtr<Headers> headers; |
| + Dictionary headersDictionary; |
| + String mode; |
| + String credentials; |
| }; |
| } |