Chromium Code Reviews| Index: Source/modules/serviceworkers/RequestInit.h |
| diff --git a/Source/modules/serviceworkers/RequestInit.h b/Source/modules/serviceworkers/RequestInit.h |
| index ac6b82b8041cee05022aef37a12b98bb8c6d78f0..7160740c858c305952c714239bfe1214579f3c16 100644 |
| --- a/Source/modules/serviceworkers/RequestInit.h |
| +++ b/Source/modules/serviceworkers/RequestInit.h |
| @@ -6,29 +6,24 @@ |
| #define RequestInit_h |
| #include "bindings/core/v8/Dictionary.h" |
| -#include "modules/serviceworkers/Headers.h" |
| #include "platform/heap/Handle.h" |
| #include "wtf/RefPtr.h" |
|
yhirano
2014/09/01 06:21:56
+#include wtf/text/WTFString.h
horo
2014/09/01 07:29:32
Done.
|
| namespace blink { |
| +class BlobDataHandle; |
| +class ExceptionState; |
| +class Headers; |
| + |
| class RequestInit { |
| STACK_ALLOCATED(); |
| public: |
| - explicit RequestInit(const Dictionary& options) |
| - { |
| - DictionaryHelper::get(options, "method", method); |
| - DictionaryHelper::get(options, "headers", headers); |
| - if (!headers) { |
| - DictionaryHelper::get(options, "headers", headersDictionary); |
| - } |
| - DictionaryHelper::get(options, "mode", mode); |
| - DictionaryHelper::get(options, "credentials", credentials); |
| - } |
| + explicit RequestInit(ExecutionContext*, const Dictionary&, ExceptionState&); |
| String method; |
| RefPtrWillBeMember<Headers> headers; |
| Dictionary headersDictionary; |
| + RefPtr<BlobDataHandle> bodyBlobHandle; |
| String mode; |
| String credentials; |
| }; |