| 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 23 matching lines...) Expand all Loading... |
| 34 #include "platform/network/FormData.h" | 34 #include "platform/network/FormData.h" |
| 35 #include "platform/network/ResourceResponse.h" | 35 #include "platform/network/ResourceResponse.h" |
| 36 #include "platform/weborigin/SecurityOrigin.h" | 36 #include "platform/weborigin/SecurityOrigin.h" |
| 37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 39 #include "wtf/text/AtomicStringHash.h" | 39 #include "wtf/text/AtomicStringHash.h" |
| 40 #include "wtf/text/StringBuilder.h" | 40 #include "wtf/text/StringBuilder.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData; |
| 44 class Blob; | 45 class Blob; |
| 45 class BlobDataHandle; | 46 class BlobDataHandle; |
| 46 class DOMArrayBuffer; | 47 class DOMArrayBuffer; |
| 47 class DOMArrayBufferView; | 48 class DOMArrayBufferView; |
| 48 class DOMFormData; | 49 class DOMFormData; |
| 49 class Document; | 50 class Document; |
| 50 class DocumentParser; | 51 class DocumentParser; |
| 51 class ExceptionState; | 52 class ExceptionState; |
| 52 class ReadableStream; | 53 class ReadableStream; |
| 53 class SecurityOrigin; | 54 class SecurityOrigin; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 String statusText() const; | 110 String statusText() const; |
| 110 int status() const; | 111 int status() const; |
| 111 State readyState() const; | 112 State readyState() const; |
| 112 bool withCredentials() const { return m_includeCredentials; } | 113 bool withCredentials() const { return m_includeCredentials; } |
| 113 void setWithCredentials(bool, ExceptionState&); | 114 void setWithCredentials(bool, ExceptionState&); |
| 114 void open(const AtomicString& method, const KURL&, ExceptionState&); | 115 void open(const AtomicString& method, const KURL&, ExceptionState&); |
| 115 void open(const AtomicString& method, const KURL&, bool async, ExceptionStat
e&); | 116 void open(const AtomicString& method, const KURL&, bool async, ExceptionStat
e&); |
| 116 void open(const AtomicString& method, const KURL&, bool async, const String&
user, ExceptionState&); | 117 void open(const AtomicString& method, const KURL&, bool async, const String&
user, ExceptionState&); |
| 117 void open(const AtomicString& method, const KURL&, bool async, const String&
user, const String& password, ExceptionState&); | 118 void open(const AtomicString& method, const KURL&, bool async, const String&
user, const String& password, ExceptionState&); |
| 118 void send(ExceptionState&); | 119 void send(ExceptionState&); |
| 119 void send(Document*, ExceptionState&); | 120 void send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormDa
ta&, ExceptionState&); |
| 120 void send(const String&, ExceptionState&); | |
| 121 void send(Blob*, ExceptionState&); | |
| 122 void send(DOMFormData*, ExceptionState&); | |
| 123 void send(DOMArrayBuffer*, ExceptionState&); | |
| 124 void send(DOMArrayBufferView*, ExceptionState&); | |
| 125 void abort(); | 121 void abort(); |
| 126 void setRequestHeader(const AtomicString& name, const AtomicString& value, E
xceptionState&); | 122 void setRequestHeader(const AtomicString& name, const AtomicString& value, E
xceptionState&); |
| 127 void overrideMimeType(const AtomicString& override, ExceptionState&); | 123 void overrideMimeType(const AtomicString& override, ExceptionState&); |
| 128 String getAllResponseHeaders() const; | 124 String getAllResponseHeaders() const; |
| 129 const AtomicString& getResponseHeader(const AtomicString&) const; | 125 const AtomicString& getResponseHeader(const AtomicString&) const; |
| 130 ScriptString responseText(ExceptionState&); | 126 ScriptString responseText(ExceptionState&); |
| 131 ScriptString responseJSONSource(); | 127 ScriptString responseJSONSource(); |
| 132 Document* responseXML(ExceptionState&); | 128 Document* responseXML(ExceptionState&); |
| 133 Blob* responseBlob(); | 129 Blob* responseBlob(); |
| 134 DOMArrayBuffer* responseArrayBuffer(); | 130 DOMArrayBuffer* responseArrayBuffer(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 193 |
| 198 PassOwnPtr<TextResourceDecoder> createDecoder() const; | 194 PassOwnPtr<TextResourceDecoder> createDecoder() const; |
| 199 | 195 |
| 200 void initResponseDocument(); | 196 void initResponseDocument(); |
| 201 void parseDocumentChunk(const char* data, unsigned dataLength); | 197 void parseDocumentChunk(const char* data, unsigned dataLength); |
| 202 | 198 |
| 203 bool areMethodAndURLValidForSend(); | 199 bool areMethodAndURLValidForSend(); |
| 204 | 200 |
| 205 bool initSend(ExceptionState&); | 201 bool initSend(ExceptionState&); |
| 206 void sendBytesData(const void*, size_t, ExceptionState&); | 202 void sendBytesData(const void*, size_t, ExceptionState&); |
| 203 void send(Document*, ExceptionState&); |
| 204 void send(const String&, ExceptionState&); |
| 205 void send(Blob*, ExceptionState&); |
| 206 void send(DOMFormData*, ExceptionState&); |
| 207 void send(DOMArrayBuffer*, ExceptionState&); |
| 208 void send(DOMArrayBufferView*, ExceptionState&); |
| 207 | 209 |
| 208 const AtomicString& getRequestHeader(const AtomicString& name) const; | 210 const AtomicString& getRequestHeader(const AtomicString& name) const; |
| 209 void setRequestHeaderInternal(const AtomicString& name, const AtomicString&
value); | 211 void setRequestHeaderInternal(const AtomicString& name, const AtomicString&
value); |
| 210 | 212 |
| 211 void trackProgress(long long dataLength); | 213 void trackProgress(long long dataLength); |
| 212 // Changes m_state and dispatches a readyStateChange event if new m_state | 214 // Changes m_state and dispatches a readyStateChange event if new m_state |
| 213 // value is different from last one. | 215 // value is different from last one. |
| 214 void changeState(State newState); | 216 void changeState(State newState); |
| 215 void dispatchReadyStateChangeEvent(); | 217 void dispatchReadyStateChangeEvent(); |
| 216 | 218 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 bool m_sameOriginRequest; | 313 bool m_sameOriginRequest; |
| 312 // True iff the ongoing resource loading is using the downloadToFile | 314 // True iff the ongoing resource loading is using the downloadToFile |
| 313 // option. | 315 // option. |
| 314 bool m_downloadingToFile; | 316 bool m_downloadingToFile; |
| 315 bool m_responseTextOverflow; | 317 bool m_responseTextOverflow; |
| 316 }; | 318 }; |
| 317 | 319 |
| 318 } // namespace blink | 320 } // namespace blink |
| 319 | 321 |
| 320 #endif // XMLHttpRequest_h | 322 #endif // XMLHttpRequest_h |
| OLD | NEW |