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

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

Issue 2448193005: [wrapper-tracing] XMLHttpRequest: Add write barriers (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/xmlhttprequest/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.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details. 15 * Lesser General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Lesser General Public 17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software 18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301 USA 20 * MA 02110-1301 USA
21 */ 21 */
22 22
23 #ifndef XMLHttpRequest_h 23 #ifndef XMLHttpRequest_h
24 #define XMLHttpRequest_h 24 #define XMLHttpRequest_h
25 25
26 #include "bindings/core/v8/ActiveScriptWrappable.h" 26 #include "bindings/core/v8/ActiveScriptWrappable.h"
27 #include "bindings/core/v8/ScriptString.h" 27 #include "bindings/core/v8/ScriptString.h"
28 #include "bindings/core/v8/ScriptWrappable.h" 28 #include "bindings/core/v8/ScriptWrappable.h"
29 #include "bindings/core/v8/TraceWrapperMember.h"
29 #include "core/dom/ActiveDOMObject.h" 30 #include "core/dom/ActiveDOMObject.h"
30 #include "core/dom/DocumentParserClient.h" 31 #include "core/dom/DocumentParserClient.h"
31 #include "core/loader/ThreadableLoaderClient.h" 32 #include "core/loader/ThreadableLoaderClient.h"
32 #include "core/xmlhttprequest/XMLHttpRequestEventTarget.h" 33 #include "core/xmlhttprequest/XMLHttpRequestEventTarget.h"
33 #include "core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h" 34 #include "core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h"
34 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
35 #include "platform/network/EncodedFormData.h" 36 #include "platform/network/EncodedFormData.h"
36 #include "platform/network/HTTPHeaderMap.h" 37 #include "platform/network/HTTPHeaderMap.h"
37 #include "platform/network/ResourceResponse.h" 38 #include "platform/network/ResourceResponse.h"
38 #include "platform/weborigin/KURL.h" 39 #include "platform/weborigin/KURL.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 276
276 Member<XMLHttpRequestUpload> m_upload; 277 Member<XMLHttpRequestUpload> m_upload;
277 278
278 KURL m_url; 279 KURL m_url;
279 AtomicString m_method; 280 AtomicString m_method;
280 HTTPHeaderMap m_requestHeaders; 281 HTTPHeaderMap m_requestHeaders;
281 // Not converted to ASCII lowercase. Must be lowered later or compared 282 // Not converted to ASCII lowercase. Must be lowered later or compared
282 // using case insensitive comparison functions if needed. 283 // using case insensitive comparison functions if needed.
283 AtomicString m_mimeTypeOverride; 284 AtomicString m_mimeTypeOverride;
284 unsigned long m_timeoutMilliseconds; 285 unsigned long m_timeoutMilliseconds;
285 Member<Blob> m_responseBlob; 286 TraceWrapperMember<Blob> m_responseBlob;
286 Member<Stream> m_responseLegacyStream; 287 TraceWrapperMember<Stream> m_responseLegacyStream;
287 288
288 Member<ThreadableLoader> m_loader; 289 Member<ThreadableLoader> m_loader;
289 State m_state; 290 State m_state;
290 291
291 ResourceResponse m_response; 292 ResourceResponse m_response;
292 String m_finalResponseCharset; 293 String m_finalResponseCharset;
293 294
294 std::unique_ptr<TextResourceDecoder> m_decoder; 295 std::unique_ptr<TextResourceDecoder> m_decoder;
295 296
296 ScriptString m_responseText; 297 ScriptString m_responseText;
297 Member<Document> m_responseDocument; 298 TraceWrapperMember<Document> m_responseDocument;
298 Member<DocumentParser> m_responseDocumentParser; 299 Member<DocumentParser> m_responseDocumentParser;
299 300
300 RefPtr<SharedBuffer> m_binaryResponseBuilder; 301 RefPtr<SharedBuffer> m_binaryResponseBuilder;
301 long long m_lengthDownloadedToFile; 302 long long m_lengthDownloadedToFile;
302 303
303 Member<DOMArrayBuffer> m_responseArrayBuffer; 304 TraceWrapperMember<DOMArrayBuffer> m_responseArrayBuffer;
304 305
305 // Used for onprogress tracking 306 // Used for onprogress tracking
306 long long m_receivedLength; 307 long long m_receivedLength;
307 308
308 // An exception to throw in synchronous mode. It's set when failure 309 // An exception to throw in synchronous mode. It's set when failure
309 // notification is received from m_loader and thrown at the end of send() if 310 // notification is received from m_loader and thrown at the end of send() if
310 // any. 311 // any.
311 ExceptionCode m_exceptionCode; 312 ExceptionCode m_exceptionCode;
312 313
313 Member<XMLHttpRequestProgressEventThrottle> m_progressEventThrottle; 314 Member<XMLHttpRequestProgressEventThrottle> m_progressEventThrottle;
(...skipping 25 matching lines...) Expand all
339 // option. 340 // option.
340 bool m_downloadingToFile; 341 bool m_downloadingToFile;
341 bool m_responseTextOverflow; 342 bool m_responseTextOverflow;
342 }; 343 };
343 344
344 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*); 345 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*);
345 346
346 } // namespace blink 347 } // namespace blink
347 348
348 #endif // XMLHttpRequest_h 349 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698