| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "core/fileapi/Blob.h" | 25 #include "core/fileapi/Blob.h" |
| 26 #include "core/fileapi/File.h" | 26 #include "core/fileapi/File.h" |
| 27 #include "platform/heap/Handle.h" | 27 #include "platform/heap/Handle.h" |
| 28 #include "platform/network/EncodedFormData.h" | 28 #include "platform/network/EncodedFormData.h" |
| 29 #include "wtf/Forward.h" | 29 #include "wtf/Forward.h" |
| 30 #include "wtf/text/CString.h" | 30 #include "wtf/text/CString.h" |
| 31 #include "wtf/text/TextEncoding.h" | 31 #include "wtf/text/TextEncoding.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 // TODO(tkent): Merge FormDataList into DOMFormData. | 35 // TODO(tkent): Merge FormDataList into FormData. |
| 36 class CORE_EXPORT FormDataList : public GarbageCollected<FormDataList> { | 36 class CORE_EXPORT FormDataList : public GarbageCollected<FormDataList> { |
| 37 public: | 37 public: |
| 38 class Item { | 38 class Item { |
| 39 ALLOW_ONLY_INLINE_ALLOCATION(); | 39 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 40 public: | 40 public: |
| 41 Item(const CString& key) : m_key(key) { } | 41 Item(const CString& key) : m_key(key) { } |
| 42 Item(const CString& key, const CString& data) : m_key(key), m_data(data)
{ } | 42 Item(const CString& key, const CString& data) : m_key(key), m_data(data)
{ } |
| 43 Item(const CString& key, Blob* blob, const String& filename) : m_key(key
), m_blob(blob), m_filename(filename) { } | 43 Item(const CString& key, Blob* blob, const String& filename) : m_key(key
), m_blob(blob), m_filename(filename) { } |
| 44 | 44 |
| 45 bool isString() const { return !m_blob; } | 45 bool isString() const { return !m_blob; } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void appendItem(const Item&); | 100 void appendItem(const Item&); |
| 101 | 101 |
| 102 WTF::TextEncoding m_encoding; | 102 WTF::TextEncoding m_encoding; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| 106 | 106 |
| 107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::FormDataList::Item); | 107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::FormDataList::Item); |
| 108 | 108 |
| 109 #endif // FormDataList_h | 109 #endif // FormDataList_h |
| OLD | NEW |