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

Unified Diff: Source/core/html/FormData.idl

Issue 1167563002: Sync the XHR-related interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: data->body Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/ProgressEventInit.idl ('k') | Source/core/xmlhttprequest/XMLHttpRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormData.idl
diff --git a/Source/core/html/FormData.idl b/Source/core/html/FormData.idl
index a9135586d45bb7b0281939bc33cac07aa46a6061..01efe14eeb0c9630a23a7742f1b71cc23ad2d7e1 100644
--- a/Source/core/html/FormData.idl
+++ b/Source/core/html/FormData.idl
@@ -28,8 +28,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// http://xhr.spec.whatwg.org/#interface-formdata
+// https://xhr.spec.whatwg.org/#interface-formdata
+// TODO(philipj): The FormDataEntryValue typedef should use Blob, not File.
typedef (File or USVString) FormDataEntryValue;
[
@@ -38,6 +39,8 @@ typedef (File or USVString) FormDataEntryValue;
GarbageCollected,
ImplementedAs=DOMFormData,
] interface FormData {
+ // TODO(philipj): The value argument should be FormDataEntryValue and there
+ // should be no optional filename argument.
void append(USVString name, Blob value, optional USVString filename);
void append(USVString name, USVString value);
@@ -45,6 +48,8 @@ typedef (File or USVString) FormDataEntryValue;
[RuntimeEnabled=FormDataNewMethods] FormDataEntryValue? get(USVString name);
[RuntimeEnabled=FormDataNewMethods] sequence<FormDataEntryValue> getAll(USVString name);
[RuntimeEnabled=FormDataNewMethods, ImplementedAs=hasEntry] boolean has(USVString name);
+ // TODO(philipj): The value argument should be FormDataEntryValue and there
+ // should be no optional filename argument.
[RuntimeEnabled=FormDataNewMethods] void set(USVString name, Blob value, optional USVString filename);
[RuntimeEnabled=FormDataNewMethods] void set(USVString name, USVString value);
[RuntimeEnabled=FormDataNewMethods] iterable<USVString, FormDataEntryValue>;
« no previous file with comments | « Source/core/events/ProgressEventInit.idl ('k') | Source/core/xmlhttprequest/XMLHttpRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698