| OLD | NEW |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, ActivityLogging=ForAllWorlds, RaisesException] void open(DOMString
method, DOMString url, optional boolean async, optional DOMString user, optional
DOMString password); | 60 [Custom, LogActivity, LogAllWorlds, RaisesException] void open(DOMString met
hod, DOMString url, optional boolean async, optional DOMString user, optional DO
MString password); |
| 61 | 61 |
| 62 [ActivityLogging=ForAllWorlds, RaisesException] void setRequestHeader(DOMStr
ing header, DOMString value); | 62 [LogActivity, LogAllWorlds, RaisesException] void setRequestHeader(DOMString
header, DOMString value); |
| 63 | 63 |
| 64 [Custom, RaisesException] void send(); | 64 [Custom, RaisesException] void send(); |
| 65 | 65 |
| 66 void abort(); | 66 void abort(); |
| 67 | 67 |
| 68 readonly attribute XMLHttpRequestUpload upload; | 68 readonly attribute XMLHttpRequestUpload upload; |
| 69 | 69 |
| 70 // response | 70 // response |
| 71 [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders(); | 71 [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders(); |
| 72 [TreatReturnedNullStringAs=Null] DOMString getResponseHeader(DOMString heade
r); | 72 [TreatReturnedNullStringAs=Null] DOMString getResponseHeader(DOMString heade
r); |
| 73 [Custom=Getter, RaisesException=Getter] readonly attribute DOMString respons
eText; // The custom getter implements TreatReturnedNullStringAs=Null | 73 [Custom=Getter, RaisesException=Getter] readonly attribute DOMString respons
eText; // The custom getter implements TreatReturnedNullStringAs=Null |
| 74 [RaisesException=Getter] readonly attribute Document responseXML; | 74 [RaisesException=Getter] readonly attribute Document responseXML; |
| 75 | 75 |
| 76 [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType; | 76 [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType; |
| 77 [Custom=Getter, RaisesException=Getter] readonly attribute object response; | 77 [Custom=Getter, RaisesException=Getter] readonly attribute object response; |
| 78 | 78 |
| 79 readonly attribute unsigned short status; | 79 readonly attribute unsigned short status; |
| 80 readonly attribute DOMString statusText; | 80 readonly attribute DOMString statusText; |
| 81 | 81 |
| 82 // Extension | 82 // Extension |
| 83 void overrideMimeType(DOMString override); | 83 void overrideMimeType(DOMString override); |
| 84 }; | 84 }; |
| OLD | NEW |