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/V8Binding.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 PasswordCredential* credential = V8PasswordCredential::toImpl(v8::Local<
v8::Object>::Cast(v8Body)); | 92 PasswordCredential* credential = V8PasswordCredential::toImpl(v8::Local<
v8::Object>::Cast(v8Body)); |
93 | 93 |
94 RefPtr<EncodedFormData> encodedData = credential->encodeFormData(content
Type); | 94 RefPtr<EncodedFormData> encodedData = credential->encodeFormData(content
Type); |
95 body = FetchFormDataConsumerHandle::create(context, encodedData.release(
)); | 95 body = FetchFormDataConsumerHandle::create(context, encodedData.release(
)); |
96 } else if (v8Body->IsString()) { | 96 } else if (v8Body->IsString()) { |
97 contentType = "text/plain;charset=UTF-8"; | 97 contentType = "text/plain;charset=UTF-8"; |
98 body = FetchFormDataConsumerHandle::create(toUSVString(isolate, v8Body,
exceptionState)); | 98 body = FetchFormDataConsumerHandle::create(toUSVString(isolate, v8Body,
exceptionState)); |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 } | 102 } // namespace blink |
OLD | NEW |