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

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

Issue 314283005: Remove m_requestEntityBody from XMLHttpRequest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed #6 Created 6 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void dropProtectionSoon(); 184 void dropProtectionSoon();
185 void dropProtection(); 185 void dropProtection();
186 // Clears variables used only while the resource is being loaded. 186 // Clears variables used only while the resource is being loaded.
187 void clearVariablesForLoading(); 187 void clearVariablesForLoading();
188 // Returns false iff reentry happened and a new load is started. 188 // Returns false iff reentry happened and a new load is started.
189 bool internalAbort(DropProtection = DropProtectionSync); 189 bool internalAbort(DropProtection = DropProtectionSync);
190 // Clears variables holding response header and body data. 190 // Clears variables holding response header and body data.
191 void clearResponse(); 191 void clearResponse();
192 void clearRequest(); 192 void clearRequest();
193 193
194 void createRequest(ExceptionState&); 194 void createRequest(PassRefPtr<FormData>, ExceptionState&);
195 195
196 // Dispatches a response ProgressEvent. 196 // Dispatches a response ProgressEvent.
197 void dispatchProgressEvent(const AtomicString&, long long, long long); 197 void dispatchProgressEvent(const AtomicString&, long long, long long);
198 // Dispatches a response ProgressEvent using values sampled from 198 // Dispatches a response ProgressEvent using values sampled from
199 // m_receivedLength and m_response. 199 // m_receivedLength and m_response.
200 void dispatchProgressEventFromSnapshot(const AtomicString&); 200 void dispatchProgressEventFromSnapshot(const AtomicString&);
201 201
202 // Does clean up common for all kind of didFail() call. 202 // Does clean up common for all kind of didFail() call.
203 void handleDidFailGeneric(); 203 void handleDidFailGeneric();
204 // Handles didFail() call not caused by cancellation or timeout. 204 // Handles didFail() call not caused by cancellation or timeout.
205 void handleNetworkError(); 205 void handleNetworkError();
206 // Handles didFail() call triggered by m_loader->cancel(). 206 // Handles didFail() call triggered by m_loader->cancel().
207 void handleDidCancel(); 207 void handleDidCancel();
208 // Handles didFail() call for timeout. 208 // Handles didFail() call for timeout.
209 void handleDidTimeout(); 209 void handleDidTimeout();
210 210
211 void handleRequestError(ExceptionCode, const AtomicString&, long long, long long); 211 void handleRequestError(ExceptionCode, const AtomicString&, long long, long long);
212 212
213 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload; 213 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload;
214 214
215 KURL m_url; 215 KURL m_url;
216 AtomicString m_method; 216 AtomicString m_method;
217 HTTPHeaderMap m_requestHeaders; 217 HTTPHeaderMap m_requestHeaders;
218 RefPtr<FormData> m_requestEntityBody;
219 AtomicString m_mimeTypeOverride; 218 AtomicString m_mimeTypeOverride;
220 bool m_async; 219 bool m_async;
221 bool m_includeCredentials; 220 bool m_includeCredentials;
222 unsigned long m_timeoutMilliseconds; 221 unsigned long m_timeoutMilliseconds;
223 RefPtrWillBeMember<Blob> m_responseBlob; 222 RefPtrWillBeMember<Blob> m_responseBlob;
224 RefPtrWillBeMember<Stream> m_responseStream; 223 RefPtrWillBeMember<Stream> m_responseStream;
225 224
226 RefPtr<ThreadableLoader> m_loader; 225 RefPtr<ThreadableLoader> m_loader;
227 State m_state; 226 State m_state;
228 227
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 262
264 // An enum corresponding to the allowed string values for the responseType a ttribute. 263 // An enum corresponding to the allowed string values for the responseType a ttribute.
265 ResponseTypeCode m_responseTypeCode; 264 ResponseTypeCode m_responseTypeCode;
266 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; 265 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner;
267 RefPtr<SecurityOrigin> m_securityOrigin; 266 RefPtr<SecurityOrigin> m_securityOrigin;
268 }; 267 };
269 268
270 } // namespace WebCore 269 } // namespace WebCore
271 270
272 #endif // XMLHttpRequest_h 271 #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