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

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

Issue 16284009: Don't deref XMLHttpRequest synchronously below stop() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool responseIsXML() const; 174 bool responseIsXML() const;
175 175
176 bool initSend(ExceptionCode&); 176 bool initSend(ExceptionCode&);
177 void sendBytesData(const void*, size_t, ExceptionCode&); 177 void sendBytesData(const void*, size_t, ExceptionCode&);
178 178
179 String getRequestHeader(const AtomicString& name) const; 179 String getRequestHeader(const AtomicString& name) const;
180 void setRequestHeaderInternal(const AtomicString& name, const String& value) ; 180 void setRequestHeaderInternal(const AtomicString& name, const String& value) ;
181 181
182 void changeState(State newState); 182 void changeState(State newState);
183 void callReadyStateChangeListener(); 183 void callReadyStateChangeListener();
184 void dropProtection(); 184 void dropProtectionSoon();
185 void dropProtection(Timer<XMLHttpRequest>* = 0);
185 void internalAbort(); 186 void internalAbort();
186 void clearResponse(); 187 void clearResponse();
187 void clearResponseBuffers(); 188 void clearResponseBuffers();
188 void clearRequest(); 189 void clearRequest();
189 190
190 void createRequest(ExceptionCode&); 191 void createRequest(ExceptionCode&);
191 192
192 void genericError(); 193 void genericError();
193 void networkError(); 194 void networkError();
194 void abortError(); 195 void abortError();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 unsigned m_lastSendLineNumber; 237 unsigned m_lastSendLineNumber;
237 String m_lastSendURL; 238 String m_lastSendURL;
238 ExceptionCode m_exceptionCode; 239 ExceptionCode m_exceptionCode;
239 240
240 EventTargetData m_eventTargetData; 241 EventTargetData m_eventTargetData;
241 242
242 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; 243 XMLHttpRequestProgressEventThrottle m_progressEventThrottle;
243 244
244 // An enum corresponding to the allowed string values for the responseType a ttribute. 245 // An enum corresponding to the allowed string values for the responseType a ttribute.
245 ResponseTypeCode m_responseTypeCode; 246 ResponseTypeCode m_responseTypeCode;
246 247 Timer<XMLHttpRequest> m_protectionTimer;
247 RefPtr<SecurityOrigin> m_securityOrigin; 248 RefPtr<SecurityOrigin> m_securityOrigin;
248 }; 249 };
249 250
250 } // namespace WebCore 251 } // namespace WebCore
251 252
252 #endif // XMLHttpRequest_h 253 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698