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

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

Issue 1237063002: Allocate XMLHttpRequest on the eagerly finalized heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add macro for testing eager finalization 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
« no previous file with comments | « no previous file | 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.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void setResponseType(const String&, ExceptionState&); 133 void setResponseType(const String&, ExceptionState&);
134 String responseURL(); 134 String responseURL();
135 135
136 // For Inspector. 136 // For Inspector.
137 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&); 137 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&);
138 138
139 XMLHttpRequestUpload* upload(); 139 XMLHttpRequestUpload* upload();
140 140
141 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange); 141 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange);
142 142
143 // (Also) eagerly finalized so as to prevent access to the eagerly finalized
144 // progress event throttle.
145 EAGERLY_FINALIZE();
146 #if !ENABLE(OILPAN)
147 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW();
148 #endif
143 DECLARE_VIRTUAL_TRACE(); 149 DECLARE_VIRTUAL_TRACE();
144 150
145 private: 151 private:
146 class BlobLoader; 152 class BlobLoader;
147 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); 153 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>);
148 154
149 Document* document() const; 155 Document* document() const;
150 SecurityOrigin* securityOrigin() const; 156 SecurityOrigin* securityOrigin() const;
151 157
152 void didSendData(unsigned long long bytesSent, unsigned long long totalBytes ToBeSent) override; 158 void didSendData(unsigned long long bytesSent, unsigned long long totalBytes ToBeSent) override;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool m_sameOriginRequest; 313 bool m_sameOriginRequest;
308 // True iff the ongoing resource loading is using the downloadToFile 314 // True iff the ongoing resource loading is using the downloadToFile
309 // option. 315 // option.
310 bool m_downloadingToFile; 316 bool m_downloadingToFile;
311 bool m_responseTextOverflow; 317 bool m_responseTextOverflow;
312 }; 318 };
313 319
314 } // namespace blink 320 } // namespace blink
315 321
316 #endif // XMLHttpRequest_h 322 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698