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

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

Issue 1060113004: [XMLHttpRequest] Stop throwing for network error in async mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed #12 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 bool responseIsXML() const; 186 bool responseIsXML() const;
187 bool responseIsHTML() const; 187 bool responseIsHTML() const;
188 188
189 PassOwnPtr<TextResourceDecoder> createDecoder() const; 189 PassOwnPtr<TextResourceDecoder> createDecoder() const;
190 190
191 void initResponseDocument(); 191 void initResponseDocument();
192 void parseDocumentChunk(const char* data, unsigned dataLength); 192 void parseDocumentChunk(const char* data, unsigned dataLength);
193 193
194 bool areMethodAndURLValidForSend(); 194 bool areMethodAndURLValidForSend();
195 195
196 void throwForLoadFailureIfNeeded(ExceptionState&, const String&);
197
196 bool initSend(ExceptionState&); 198 bool initSend(ExceptionState&);
197 void sendBytesData(const void*, size_t, ExceptionState&); 199 void sendBytesData(const void*, size_t, ExceptionState&);
198 void send(Document*, ExceptionState&); 200 void send(Document*, ExceptionState&);
199 void send(const String&, ExceptionState&); 201 void send(const String&, ExceptionState&);
200 void send(Blob*, ExceptionState&); 202 void send(Blob*, ExceptionState&);
201 void send(DOMFormData*, ExceptionState&); 203 void send(DOMFormData*, ExceptionState&);
202 void send(DOMArrayBuffer*, ExceptionState&); 204 void send(DOMArrayBuffer*, ExceptionState&);
203 void send(DOMArrayBufferView*, ExceptionState&); 205 void send(DOMArrayBufferView*, ExceptionState&);
204 206
205 const AtomicString& getRequestHeader(const AtomicString& name) const; 207 const AtomicString& getRequestHeader(const AtomicString& name) const;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool m_sameOriginRequest; 309 bool m_sameOriginRequest;
308 // True iff the ongoing resource loading is using the downloadToFile 310 // True iff the ongoing resource loading is using the downloadToFile
309 // option. 311 // option.
310 bool m_downloadingToFile; 312 bool m_downloadingToFile;
311 bool m_responseTextOverflow; 313 bool m_responseTextOverflow;
312 }; 314 };
313 315
314 } // namespace blink 316 } // namespace blink
315 317
316 #endif // XMLHttpRequest_h 318 #endif // XMLHttpRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698