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

Side by Side Diff: core/xml/XMLHttpRequest.idl

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 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 | « core/workers/Worker.idl ('k') | core/xml/XPathNSResolver.idl » ('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) 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 enum XMLHttpRequestResponseType { 29 enum XMLHttpRequestResponseType {
30 "", 30 "",
31 "arraybuffer", 31 "arraybuffer",
32 "blob", 32 "blob",
33 "document", 33 "document",
34 "json", 34 "json",
35 "text", 35 "text",
36 "stream" 36 "legacystream"
37 }; 37 };
38 38
39 [ 39 [
40 WillBeGarbageCollected, 40 WillBeGarbageCollected,
41 ActiveDOMObject, 41 ActiveDOMObject,
42 CustomConstructor(optional XMLHttpRequestOptions options), 42 CustomConstructor(optional XMLHttpRequestOptions options),
43 Exposed=Window&Worker 43 Exposed=(Window,DedicatedWorker,SharedWorker)
44 ] interface XMLHttpRequest : XMLHttpRequestEventTarget { 44 ] interface XMLHttpRequest : XMLHttpRequestEventTarget {
45 // event handler attributes 45 // event handler attributes
46 attribute EventHandler onreadystatechange; 46 attribute EventHandler onreadystatechange;
47 47
48 // state 48 // state
49 const unsigned short UNSENT = 0; 49 const unsigned short UNSENT = 0;
50 const unsigned short OPENED = 1; 50 const unsigned short OPENED = 1;
51 const unsigned short HEADERS_RECEIVED = 2; 51 const unsigned short HEADERS_RECEIVED = 2;
52 const unsigned short LOADING = 3; 52 const unsigned short LOADING = 3;
53 const unsigned short DONE = 4; 53 const unsigned short DONE = 4;
54 54
55 [RaisesException=Setter] attribute unsigned long timeout; 55 [RaisesException=Setter] attribute unsigned long timeout;
56 readonly attribute unsigned short readyState; 56 readonly attribute unsigned short readyState;
57 57
58 [RaisesException=Setter] attribute boolean withCredentials; 58 [RaisesException=Setter] attribute boolean withCredentials;
59 59
60 [Custom, LogActivity, LogAllWorlds, RaisesException] void open(DOMString met hod, DOMString url, optional boolean async, optional DOMString user, optional DO MString password); 60 [Custom, RaisesException] void open(DOMString method, DOMString url, optiona l boolean async, optional DOMString user, optional DOMString password);
61 61
62 [LogActivity, LogAllWorlds, RaisesException] void setRequestHeader(DOMString header, DOMString value); 62 [RaisesException] void setRequestHeader(DOMString header, DOMString value);
63 63
64 [Custom, RaisesException] void send(); 64 [Custom, RaisesException] void send();
65 // FIXMEDART: send(ArrayBuffer data) should be eventually deprecated. 65 // FIXMEDART: send(ArrayBuffer data) should be eventually deprecated.
66 [DartCustom=New] void send(ArrayBuffer data); 66 [DartCustom=New] void send(ArrayBuffer data);
67 [DartCustom=New] void send(ArrayBufferView data); 67 [DartCustom=New] void send(ArrayBufferView data);
68 [DartCustom=New] void send(Blob data); 68 [DartCustom=New] void send(Blob data);
69 [DartCustom=New] void send(Document data); 69 [DartCustom=New] void send(Document data);
70 [DartCustom=New] void send(DOMString data); 70 [DartCustom=New] void send(DOMString data);
71 [DartCustom=New] void send(FormData data); 71 [DartCustom=New] void send(FormData data);
72 72
73 void abort(); 73 void abort();
74 74
75 readonly attribute XMLHttpRequestUpload upload; 75 readonly attribute XMLHttpRequestUpload upload;
76 76
77 // response 77 // response
78 [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders(); 78 [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders();
79 [TreatReturnedNullStringAs=Null] DOMString getResponseHeader(DOMString heade r); 79 DOMString? getResponseHeader(DOMString header);
80 [Custom=Getter, RaisesException=Getter] readonly attribute DOMString respons eText; // The custom getter implements TreatReturnedNullStringAs=Null 80 [Custom=Getter, RaisesException=Getter] readonly attribute DOMString? respon seText;
81 [RaisesException=Getter] readonly attribute Document responseXML; 81 [RaisesException=Getter] readonly attribute Document responseXML;
82 82
83 [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType; 83 [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType;
84 [Custom=Getter, RaisesException=Getter] readonly attribute object response; 84 [Custom=Getter, RaisesException=Getter] readonly attribute object response;
85 readonly attribute DOMString responseURL; 85 readonly attribute DOMString responseURL;
86 86
87 readonly attribute unsigned short status; 87 readonly attribute unsigned short status;
88 readonly attribute DOMString statusText; 88 readonly attribute DOMString statusText;
89 89
90 // Extension 90 // Extension
91 void overrideMimeType(DOMString override); 91 void overrideMimeType(DOMString override);
92 }; 92 };
OLDNEW
« no previous file with comments | « core/workers/Worker.idl ('k') | core/xml/XPathNSResolver.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698