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

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

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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 | « Source/core/loader/FormSubmission.cpp ('k') | 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // response attribute has custom getter. 137 // response attribute has custom getter.
138 ArrayBuffer* responseArrayBuffer(); 138 ArrayBuffer* responseArrayBuffer();
139 139
140 void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lin eNumber; } 140 void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lin eNumber; }
141 void setLastSendURL(const String& url) { m_lastSendURL = url; } 141 void setLastSendURL(const String& url) { m_lastSendURL = url; }
142 142
143 XMLHttpRequestUpload* upload(); 143 XMLHttpRequestUpload* upload();
144 144
145 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange); 145 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange);
146 146
147 void trace(Visitor*) { } 147 void trace(Visitor*);
148 148
149 private: 149 private:
150 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); 150 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>);
151 151
152 Document* document() const; 152 Document* document() const;
153 SecurityOrigin* securityOrigin() const; 153 SecurityOrigin* securityOrigin() const;
154 154
155 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent) OVERRIDE; 155 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent) OVERRIDE;
156 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&) OVERRIDE; 156 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&) OVERRIDE;
157 virtual void didReceiveData(const char* data, int dataLength) OVERRIDE; 157 virtual void didReceiveData(const char* data, int dataLength) OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 OwnPtr<XMLHttpRequestUpload> m_upload; 215 OwnPtr<XMLHttpRequestUpload> m_upload;
216 216
217 KURL m_url; 217 KURL m_url;
218 AtomicString m_method; 218 AtomicString m_method;
219 HTTPHeaderMap m_requestHeaders; 219 HTTPHeaderMap m_requestHeaders;
220 RefPtr<FormData> m_requestEntityBody; 220 RefPtr<FormData> m_requestEntityBody;
221 AtomicString m_mimeTypeOverride; 221 AtomicString m_mimeTypeOverride;
222 bool m_async; 222 bool m_async;
223 bool m_includeCredentials; 223 bool m_includeCredentials;
224 unsigned long m_timeoutMilliseconds; 224 unsigned long m_timeoutMilliseconds;
225 RefPtr<Blob> m_responseBlob; 225 RefPtrWillBeMember<Blob> m_responseBlob;
226 RefPtr<Stream> m_responseStream; 226 RefPtrWillBeMember<Stream> m_responseStream;
227 227
228 RefPtr<ThreadableLoader> m_loader; 228 RefPtr<ThreadableLoader> m_loader;
229 State m_state; 229 State m_state;
230 230
231 ResourceResponse m_response; 231 ResourceResponse m_response;
232 String m_responseEncoding; 232 String m_responseEncoding;
233 233
234 OwnPtr<TextResourceDecoder> m_decoder; 234 OwnPtr<TextResourceDecoder> m_decoder;
235 235
236 ScriptString m_responseText; 236 ScriptString m_responseText;
(...skipping 27 matching lines...) Expand all
264 264
265 // An enum corresponding to the allowed string values for the responseType a ttribute. 265 // An enum corresponding to the allowed string values for the responseType a ttribute.
266 ResponseTypeCode m_responseTypeCode; 266 ResponseTypeCode m_responseTypeCode;
267 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; 267 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner;
268 RefPtr<SecurityOrigin> m_securityOrigin; 268 RefPtr<SecurityOrigin> m_securityOrigin;
269 }; 269 };
270 270
271 } // namespace WebCore 271 } // namespace WebCore
272 272
273 #endif // XMLHttpRequest_h 273 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « Source/core/loader/FormSubmission.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698