| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/fetch/RequestInit.h" | 5 #include "modules/fetch/RequestInit.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/Dictionary.h" | 7 #include "bindings/core/v8/Dictionary.h" |
| 8 #include "bindings/core/v8/V8ArrayBuffer.h" | 8 #include "bindings/core/v8/V8ArrayBuffer.h" |
| 9 #include "bindings/core/v8/V8ArrayBufferView.h" | 9 #include "bindings/core/v8/V8ArrayBufferView.h" |
| 10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8BindingForCore.h" |
| 11 #include "bindings/core/v8/V8Blob.h" | 11 #include "bindings/core/v8/V8Blob.h" |
| 12 #include "bindings/core/v8/V8FormData.h" | 12 #include "bindings/core/v8/V8FormData.h" |
| 13 #include "bindings/core/v8/V8URLSearchParams.h" | 13 #include "bindings/core/v8/V8URLSearchParams.h" |
| 14 #include "bindings/modules/v8/ByteStringSequenceSequenceOrByteStringByteStringRe
cordOrHeaders.h" | 14 #include "bindings/modules/v8/ByteStringSequenceSequenceOrByteStringByteStringRe
cordOrHeaders.h" |
| 15 #include "bindings/modules/v8/V8PasswordCredential.h" | 15 #include "bindings/modules/v8/V8PasswordCredential.h" |
| 16 #include "core/dom/URLSearchParams.h" | 16 #include "core/dom/URLSearchParams.h" |
| 17 #include "core/fileapi/Blob.h" | 17 #include "core/fileapi/Blob.h" |
| 18 #include "core/html/FormData.h" | 18 #include "core/html/FormData.h" |
| 19 #include "modules/fetch/BlobBytesConsumer.h" | 19 #include "modules/fetch/BlobBytesConsumer.h" |
| 20 #include "modules/fetch/FormDataBytesConsumer.h" | 20 #include "modules/fetch/FormDataBytesConsumer.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 AtomicString("application/x-www-form-urlencoded;charset=UTF-8"); | 169 AtomicString("application/x-www-form-urlencoded;charset=UTF-8"); |
| 170 body = new FormDataBytesConsumer(context, form_data.Release()); | 170 body = new FormDataBytesConsumer(context, form_data.Release()); |
| 171 } else if (v8_body->IsString()) { | 171 } else if (v8_body->IsString()) { |
| 172 content_type = "text/plain;charset=UTF-8"; | 172 content_type = "text/plain;charset=UTF-8"; |
| 173 body = new FormDataBytesConsumer( | 173 body = new FormDataBytesConsumer( |
| 174 ToUSVString(isolate, v8_body, exception_state)); | 174 ToUSVString(isolate, v8_body, exception_state)); |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace blink | 178 } // namespace blink |
| OLD | NEW |