Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: Source/core/html/FormDataList.h

Issue 329513002: Remove encoding parameter from createMultiPartFormData() and createFormData() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/FormDataList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 void appendBlob(const String& key, PassRefPtrWillBeRawPtr<Blob> blob, const String& filename = String()) 71 void appendBlob(const String& key, PassRefPtrWillBeRawPtr<Blob> blob, const String& filename = String())
72 { 72 {
73 appendString(key); 73 appendString(key);
74 appendBlob(blob, filename); 74 appendBlob(blob, filename);
75 } 75 }
76 76
77 const WillBeHeapVector<Item>& items() const { return m_items; } 77 const WillBeHeapVector<Item>& items() const { return m_items; }
78 const WTF::TextEncoding& encoding() const { return m_encoding; } 78 const WTF::TextEncoding& encoding() const { return m_encoding; }
79 79
80 PassRefPtr<FormData> createFormData(const WTF::TextEncoding&, FormData::Enco dingType = FormData::FormURLEncoded); 80 PassRefPtr<FormData> createFormData(FormData::EncodingType = FormData::FormU RLEncoded);
81 PassRefPtr<FormData> createMultiPartFormData(const WTF::TextEncoding&); 81 PassRefPtr<FormData> createMultiPartFormData();
82 82
83 void trace(Visitor*); 83 void trace(Visitor*);
84 84
85 private: 85 private:
86 void appendKeyValuePairItemsTo(FormData*, const WTF::TextEncoding&, bool isM ultiPartForm, FormData::EncodingType = FormData::FormURLEncoded); 86 void appendKeyValuePairItemsTo(FormData*, const WTF::TextEncoding&, bool isM ultiPartForm, FormData::EncodingType = FormData::FormURLEncoded);
87 87
88 void appendString(const CString&); 88 void appendString(const CString&);
89 void appendString(const String&); 89 void appendString(const String&);
90 void appendBlob(PassRefPtrWillBeRawPtr<Blob>, const String& filename); 90 void appendBlob(PassRefPtrWillBeRawPtr<Blob>, const String& filename);
91 91
92 WTF::TextEncoding m_encoding; 92 WTF::TextEncoding m_encoding;
93 WillBeHeapVector<Item> m_items; 93 WillBeHeapVector<Item> m_items;
94 }; 94 };
95 95
96 } // namespace WebCore 96 } // namespace WebCore
97 97
98 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(WebCore::FormDataList::Item); 98 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(WebCore::FormDataList::Item);
99 99
100 #endif // FormDataList_h 100 #endif // FormDataList_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/FormDataList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698