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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual const AtomicString& interfaceName() const override; | 115 virtual const AtomicString& interfaceName() const override; |
116 | 116 |
117 // JavaScript attributes and methods | 117 // JavaScript attributes and methods |
118 const KURL& url() const { return m_url; } | 118 const KURL& url() const { return m_url; } |
119 String statusText() const; | 119 String statusText() const; |
120 int status() const; | 120 int status() const; |
121 State readyState() const; | 121 State readyState() const; |
122 bool withCredentials() const { return m_includeCredentials; } | 122 bool withCredentials() const { return m_includeCredentials; } |
123 void setWithCredentials(bool, ExceptionState&); | 123 void setWithCredentials(bool, ExceptionState&); |
124 void open(const AtomicString& method, const String& url, ExceptionState&); | 124 void open(const AtomicString& method, const String& url, ExceptionState&); |
125 void open(const AtomicString& method, const String& url, bool async, Excepti
onState&); | 125 void open(const AtomicString& method, const String& url, bool async, const S
tring& username, const String& password, ExceptionState&); |
126 void open(const AtomicString& method, const String& url, bool async, const S
tring& user, ExceptionState&); | |
127 void open(const AtomicString& method, const String& url, bool async, const S
tring& user, const String& password, ExceptionState&); | |
128 void open(const AtomicString& method, const KURL&, bool async, ExceptionStat
e&); | 126 void open(const AtomicString& method, const KURL&, bool async, ExceptionStat
e&); |
129 void send(ExceptionState&); | |
130 void send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormDa
ta&, ExceptionState&); | 127 void send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormDa
ta&, ExceptionState&); |
131 void abort(); | 128 void abort(); |
132 void setRequestHeader(const AtomicString& name, const AtomicString& value, E
xceptionState&); | 129 void setRequestHeader(const AtomicString& name, const AtomicString& value, E
xceptionState&); |
133 void overrideMimeType(const AtomicString& override, ExceptionState&); | 130 void overrideMimeType(const AtomicString& override, ExceptionState&); |
134 String getAllResponseHeaders() const; | 131 String getAllResponseHeaders() const; |
135 const AtomicString& getResponseHeader(const AtomicString&) const; | 132 const AtomicString& getResponseHeader(const AtomicString&) const; |
136 ScriptString responseText(ExceptionState&); | 133 ScriptString responseText(ExceptionState&); |
137 ScriptString responseJSONSource(); | 134 ScriptString responseJSONSource(); |
138 Document* responseXML(ExceptionState&); | 135 Document* responseXML(ExceptionState&); |
139 Blob* responseBlob(); | 136 Blob* responseBlob(); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 bool m_sameOriginRequest; | 320 bool m_sameOriginRequest; |
324 // True iff the ongoing resource loading is using the downloadToFile | 321 // True iff the ongoing resource loading is using the downloadToFile |
325 // option. | 322 // option. |
326 bool m_downloadingToFile; | 323 bool m_downloadingToFile; |
327 bool m_responseTextOverflow; | 324 bool m_responseTextOverflow; |
328 }; | 325 }; |
329 | 326 |
330 } // namespace blink | 327 } // namespace blink |
331 | 328 |
332 #endif // XMLHttpRequest_h | 329 #endif // XMLHttpRequest_h |
OLD | NEW |