diff options
author | Kristian Monsen <kristianm@google.com> | 2010-09-08 12:18:00 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2010-09-11 12:08:58 +0100 |
commit | 5ddde30071f639962dd557c453f2ad01f8f0fd00 (patch) | |
tree | 775803c4ab35af50aa5f5472cd1fb95fe9d5152d /WebCore/xml/XMLHttpRequest.h | |
parent | 3e63d9b33b753ca86d0765d1b3d711114ba9e34f (diff) | |
download | external_webkit-5ddde30071f639962dd557c453f2ad01f8f0fd00.zip external_webkit-5ddde30071f639962dd557c453f2ad01f8f0fd00.tar.gz external_webkit-5ddde30071f639962dd557c453f2ad01f8f0fd00.tar.bz2 |
Merge WebKit at r66666 : Initial merge by git.
Change-Id: I57dedeb49859adc9c539e760f0e749768c66626f
Diffstat (limited to 'WebCore/xml/XMLHttpRequest.h')
-rw-r--r-- | WebCore/xml/XMLHttpRequest.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/WebCore/xml/XMLHttpRequest.h b/WebCore/xml/XMLHttpRequest.h index 2947b46..d25f63f 100644 --- a/WebCore/xml/XMLHttpRequest.h +++ b/WebCore/xml/XMLHttpRequest.h @@ -70,6 +70,10 @@ public: State readyState() const; bool withCredentials() const { return m_includeCredentials; } void setWithCredentials(bool, ExceptionCode&); +#if ENABLE(XHR_RESPONSE_BLOB) + bool asBlob() const { return m_asBlob; } + void setAsBlob(bool, ExceptionCode&); +#endif void open(const String& method, const KURL&, ExceptionCode&); void open(const String& method, const KURL&, bool async, ExceptionCode&); void open(const String& method, const KURL&, bool async, const String& user, ExceptionCode&); @@ -84,8 +88,11 @@ public: void overrideMimeType(const String& override); String getAllResponseHeaders(ExceptionCode&) const; String getResponseHeader(const AtomicString& name, ExceptionCode&) const; - const ScriptString& responseText() const; - Document* responseXML() const; + const ScriptString& responseText(ExceptionCode&) const; + Document* responseXML(ExceptionCode&) const; +#if ENABLE(XHR_RESPONSE_BLOB) + Blob* responseBlob(ExceptionCode&) const; +#endif void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lineNumber; } void setLastSendURL(const String& url) { m_lastSendURL = url; } @@ -155,6 +162,10 @@ private: String m_mimeTypeOverride; bool m_async; bool m_includeCredentials; +#if ENABLE(XHR_RESPONSE_BLOB) + bool m_asBlob; + RefPtr<Blob> m_responseBlob; +#endif RefPtr<ThreadableLoader> m_loader; State m_state; |