Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: Source/core/xmlhttprequest/XMLHttpRequest.h

Issue 1229013004: Revert of [XMLHttpRequest] Stop throwing for network error in async mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 bool responseIsXML() const; 192 bool responseIsXML() const;
193 bool responseIsHTML() const; 193 bool responseIsHTML() const;
194 194
195 PassOwnPtr<TextResourceDecoder> createDecoder() const; 195 PassOwnPtr<TextResourceDecoder> createDecoder() const;
196 196
197 void initResponseDocument(); 197 void initResponseDocument();
198 void parseDocumentChunk(const char* data, unsigned dataLength); 198 void parseDocumentChunk(const char* data, unsigned dataLength);
199 199
200 bool areMethodAndURLValidForSend(); 200 bool areMethodAndURLValidForSend();
201 201
202 void throwForLoadFailureIfNeeded(ExceptionState&, const String&);
203
204 bool initSend(ExceptionState&); 202 bool initSend(ExceptionState&);
205 void sendBytesData(const void*, size_t, ExceptionState&); 203 void sendBytesData(const void*, size_t, ExceptionState&);
206 void send(Document*, ExceptionState&); 204 void send(Document*, ExceptionState&);
207 void send(const String&, ExceptionState&); 205 void send(const String&, ExceptionState&);
208 void send(Blob*, ExceptionState&); 206 void send(Blob*, ExceptionState&);
209 void send(DOMFormData*, ExceptionState&); 207 void send(DOMFormData*, ExceptionState&);
210 void send(DOMArrayBuffer*, ExceptionState&); 208 void send(DOMArrayBuffer*, ExceptionState&);
211 void send(DOMArrayBufferView*, ExceptionState&); 209 void send(DOMArrayBufferView*, ExceptionState&);
212 210
213 const AtomicString& getRequestHeader(const AtomicString& name) const; 211 const AtomicString& getRequestHeader(const AtomicString& name) const;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 bool m_sameOriginRequest; 313 bool m_sameOriginRequest;
316 // True iff the ongoing resource loading is using the downloadToFile 314 // True iff the ongoing resource loading is using the downloadToFile
317 // option. 315 // option.
318 bool m_downloadingToFile; 316 bool m_downloadingToFile;
319 bool m_responseTextOverflow; 317 bool m_responseTextOverflow;
320 }; 318 };
321 319
322 } // namespace blink 320 } // namespace blink
323 321
324 #endif // XMLHttpRequest_h 322 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « LayoutTests/security/resources/cannot-read-self-from-file.html ('k') | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698