OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> | 3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> |
4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
5 * Copyright (C) 2012 Intel Corporation | 5 * Copyright (C) 2012 Intel Corporation |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // XMLHttpRequestEventTarget | 105 // XMLHttpRequestEventTarget |
106 virtual const AtomicString& interfaceName() const override; | 106 virtual const AtomicString& interfaceName() const override; |
107 | 107 |
108 // JavaScript attributes and methods | 108 // JavaScript attributes and methods |
109 const KURL& url() const { return m_url; } | 109 const KURL& url() const { return m_url; } |
110 String statusText() const; | 110 String statusText() const; |
111 int status() const; | 111 int status() const; |
112 State readyState() const; | 112 State readyState() const; |
113 bool withCredentials() const { return m_includeCredentials; } | 113 bool withCredentials() const { return m_includeCredentials; } |
114 void setWithCredentials(bool, ExceptionState&); | 114 void setWithCredentials(bool, ExceptionState&); |
115 void open(const AtomicString& method, const KURL&, ExceptionState&); | 115 void open(const AtomicString& method, const String& url, ExceptionState&); |
| 116 void open(const AtomicString& method, const String& url, bool async, Excepti
onState&); |
| 117 void open(const AtomicString& method, const String& url, bool async, const S
tring& user, ExceptionState&); |
| 118 void open(const AtomicString& method, const String& url, bool async, const S
tring& user, const String& password, ExceptionState&); |
116 void open(const AtomicString& method, const KURL&, bool async, ExceptionStat
e&); | 119 void open(const AtomicString& method, const KURL&, bool async, ExceptionStat
e&); |
117 void open(const AtomicString& method, const KURL&, bool async, const String&
user, ExceptionState&); | |
118 void open(const AtomicString& method, const KURL&, bool async, const String&
user, const String& password, ExceptionState&); | |
119 void send(ExceptionState&); | 120 void send(ExceptionState&); |
120 void send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormDa
ta&, ExceptionState&); | 121 void send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormDa
ta&, ExceptionState&); |
121 void abort(); | 122 void abort(); |
122 void setRequestHeader(const AtomicString& name, const AtomicString& value, E
xceptionState&); | 123 void setRequestHeader(const AtomicString& name, const AtomicString& value, E
xceptionState&); |
123 void overrideMimeType(const AtomicString& override, ExceptionState&); | 124 void overrideMimeType(const AtomicString& override, ExceptionState&); |
124 String getAllResponseHeaders() const; | 125 String getAllResponseHeaders() const; |
125 const AtomicString& getResponseHeader(const AtomicString&) const; | 126 const AtomicString& getResponseHeader(const AtomicString&) const; |
126 ScriptString responseText(ExceptionState&); | 127 ScriptString responseText(ExceptionState&); |
127 ScriptString responseJSONSource(); | 128 ScriptString responseJSONSource(); |
128 Document* responseXML(ExceptionState&); | 129 Document* responseXML(ExceptionState&); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 bool m_sameOriginRequest; | 314 bool m_sameOriginRequest; |
314 // True iff the ongoing resource loading is using the downloadToFile | 315 // True iff the ongoing resource loading is using the downloadToFile |
315 // option. | 316 // option. |
316 bool m_downloadingToFile; | 317 bool m_downloadingToFile; |
317 bool m_responseTextOverflow; | 318 bool m_responseTextOverflow; |
318 }; | 319 }; |
319 | 320 |
320 } // namespace blink | 321 } // namespace blink |
321 | 322 |
322 #endif // XMLHttpRequest_h | 323 #endif // XMLHttpRequest_h |
OLD | NEW |