| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 void appendData(const String& key, int value) | 96 void appendData(const String& key, int value) |
| 97 { | 97 { |
| 98 appendItem(Item(encodeAndNormalize(key), encodeAndNormalize(String::numb
er(value)))); | 98 appendItem(Item(encodeAndNormalize(key), encodeAndNormalize(String::numb
er(value)))); |
| 99 } | 99 } |
| 100 void appendBlob(const String& key, Blob* blob, const String& filename = Stri
ng()) | 100 void appendBlob(const String& key, Blob* blob, const String& filename = Stri
ng()) |
| 101 { | 101 { |
| 102 appendItem(Item(encodeAndNormalize(key), blob, filename)); | 102 appendItem(Item(encodeAndNormalize(key), blob, filename)); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void deleteEntry(const String& key); | |
| 106 Entry getEntry(const String& key) const; | 105 Entry getEntry(const String& key) const; |
| 107 Entry getEntry(size_t index) const; | 106 Entry getEntry(size_t index) const; |
| 108 HeapVector<Entry> getAll(const String& key) const; | 107 HeapVector<Entry> getAll(const String& key) const; |
| 109 bool hasEntry(const String& key) const; | |
| 110 size_t size() const { return m_items.size(); } | 108 size_t size() const { return m_items.size(); } |
| 111 | 109 |
| 112 const FormDataListItems& items() const { return m_items; } | 110 const FormDataListItems& items() const { return m_items; } |
| 113 const WTF::TextEncoding& encoding() const { return m_encoding; } | 111 const WTF::TextEncoding& encoding() const { return m_encoding; } |
| 114 | 112 |
| 115 PassRefPtr<FormData> createFormData(FormData::EncodingType = FormData::FormU
RLEncoded); | 113 PassRefPtr<FormData> createFormData(FormData::EncodingType = FormData::FormU
RLEncoded); |
| 116 PassRefPtr<FormData> createMultiPartFormData(); | 114 PassRefPtr<FormData> createMultiPartFormData(); |
| 117 | 115 |
| 118 DECLARE_VIRTUAL_TRACE(); | 116 DECLARE_VIRTUAL_TRACE(); |
| 119 | 117 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 131 | 129 |
| 132 WTF::TextEncoding m_encoding; | 130 WTF::TextEncoding m_encoding; |
| 133 }; | 131 }; |
| 134 | 132 |
| 135 } // namespace blink | 133 } // namespace blink |
| 136 | 134 |
| 137 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::FormDataList::Entry); | 135 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::FormDataList::Entry); |
| 138 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::FormDataList::Item); | 136 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::FormDataList::Item); |
| 139 | 137 |
| 140 #endif // FormDataList_h | 138 #endif // FormDataList_h |
| OLD | NEW |