| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "config.h" | 22 #include "config.h" |
| 23 #include "core/platform/network/FormData.h" | 23 #include "core/platform/network/FormData.h" |
| 24 | 24 |
| 25 #include "core/fileapi/File.h" | 25 #include "core/fileapi/File.h" |
| 26 #include "core/platform/network/BlobData.h" | |
| 27 #include "core/platform/network/FormDataBuilder.h" | 26 #include "core/platform/network/FormDataBuilder.h" |
| 28 #include "core/platform/network/FormDataList.h" | 27 #include "core/platform/network/FormDataList.h" |
| 29 #include "platform/FileMetadata.h" | 28 #include "platform/FileMetadata.h" |
| 29 #include "platform/blob/BlobData.h" |
| 30 #include "wtf/text/TextEncoding.h" | 30 #include "wtf/text/TextEncoding.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 inline FormData::FormData() | 34 inline FormData::FormData() |
| 35 : m_identifier(0) | 35 : m_identifier(0) |
| 36 , m_alwaysStream(false) | 36 , m_alwaysStream(false) |
| 37 , m_containsPasswordData(false) | 37 , m_containsPasswordData(false) |
| 38 { | 38 { |
| 39 } | 39 } |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 } | 254 } |
| 255 | 255 |
| 256 String FormData::flattenToString() const | 256 String FormData::flattenToString() const |
| 257 { | 257 { |
| 258 Vector<char> bytes; | 258 Vector<char> bytes; |
| 259 flatten(bytes); | 259 flatten(bytes); |
| 260 return Latin1Encoding().decode(reinterpret_cast<const char*>(bytes.data()),
bytes.size()); | 260 return Latin1Encoding().decode(reinterpret_cast<const char*>(bytes.data()),
bytes.size()); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace WebCore | 263 } // namespace WebCore |
| OLD | NEW |