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/credentialmanager/PasswordCredential.h" | 5 #include "modules/credentialmanager/PasswordCredential.h" |
6 | 6 |
7 #include "bindings/core/v8/Dictionary.h" | 7 #include "bindings/core/v8/Dictionary.h" |
8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "core/HTMLNames.h" | 9 #include "core/HTMLNames.h" |
10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 else | 172 else |
173 form_data->append(name, form_data->Decode(entry->Value())); | 173 form_data->append(name, form_data->Decode(entry->Value())); |
174 } | 174 } |
175 } | 175 } |
176 form_data->append(idName(), id()); | 176 form_data->append(idName(), id()); |
177 form_data->append(passwordName(), password()); | 177 form_data->append(passwordName(), password()); |
178 | 178 |
179 RefPtr<EncodedFormData> encoded_data = form_data->EncodeMultiPartFormData(); | 179 RefPtr<EncodedFormData> encoded_data = form_data->EncodeMultiPartFormData(); |
180 content_type = AtomicString("multipart/form-data; boundary=") + | 180 content_type = AtomicString("multipart/form-data; boundary=") + |
181 encoded_data->Boundary().data(); | 181 encoded_data->Boundary().data(); |
182 return encoded_data.Release(); | 182 return encoded_data; |
183 } | 183 } |
184 | 184 |
185 DEFINE_TRACE(PasswordCredential) { | 185 DEFINE_TRACE(PasswordCredential) { |
186 CredentialUserData::Trace(visitor); | 186 CredentialUserData::Trace(visitor); |
187 visitor->Trace(additional_data_); | 187 visitor->Trace(additional_data_); |
188 } | 188 } |
189 | 189 |
190 } // namespace blink | 190 } // namespace blink |
OLD | NEW |