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

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

Issue 667393002: [XHR] No need to remember line number and URL on send() for inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 2 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/inspector/InspectorResourceAgent.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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 String responseType(); 140 String responseType();
141 void setResponseType(const String&, ExceptionState&); 141 void setResponseType(const String&, ExceptionState&);
142 String responseURL(); 142 String responseURL();
143 143
144 // For Inspector. 144 // For Inspector.
145 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&); 145 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&);
146 146
147 // Expose HTTP validation methods for other untrusted requests. 147 // Expose HTTP validation methods for other untrusted requests.
148 static AtomicString uppercaseKnownHTTPMethod(const AtomicString&); 148 static AtomicString uppercaseKnownHTTPMethod(const AtomicString&);
149 149
150 void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lin eNumber; }
151 void setLastSendURL(const String& url) { m_lastSendURL = url; }
152
153 XMLHttpRequestUpload* upload(); 150 XMLHttpRequestUpload* upload();
154 151
155 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange); 152 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange);
156 153
157 virtual void trace(Visitor*) override; 154 virtual void trace(Visitor*) override;
158 155
159 private: 156 private:
160 class BlobLoader; 157 class BlobLoader;
161 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); 158 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>);
162 159
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 RefPtrWillBeMember<DocumentParser> m_responseDocumentParser; 275 RefPtrWillBeMember<DocumentParser> m_responseDocumentParser;
279 276
280 RefPtr<SharedBuffer> m_binaryResponseBuilder; 277 RefPtr<SharedBuffer> m_binaryResponseBuilder;
281 long long m_lengthDownloadedToFile; 278 long long m_lengthDownloadedToFile;
282 279
283 RefPtr<DOMArrayBuffer> m_responseArrayBuffer; 280 RefPtr<DOMArrayBuffer> m_responseArrayBuffer;
284 281
285 // Used for onprogress tracking 282 // Used for onprogress tracking
286 long long m_receivedLength; 283 long long m_receivedLength;
287 284
288 unsigned m_lastSendLineNumber;
289 String m_lastSendURL;
290 // An exception to throw in synchronous mode. It's set when failure 285 // An exception to throw in synchronous mode. It's set when failure
291 // notification is received from m_loader and thrown at the end of send() if 286 // notification is received from m_loader and thrown at the end of send() if
292 // any. 287 // any.
293 ExceptionCode m_exceptionCode; 288 ExceptionCode m_exceptionCode;
294 289
295 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; 290 XMLHttpRequestProgressEventThrottle m_progressEventThrottle;
296 291
297 // An enum corresponding to the allowed string values for the responseType a ttribute. 292 // An enum corresponding to the allowed string values for the responseType a ttribute.
298 ResponseTypeCode m_responseTypeCode; 293 ResponseTypeCode m_responseTypeCode;
299 RefPtr<SecurityOrigin> m_securityOrigin; 294 RefPtr<SecurityOrigin> m_securityOrigin;
(...skipping 12 matching lines...) Expand all
312 bool m_uploadComplete; 307 bool m_uploadComplete;
313 bool m_sameOriginRequest; 308 bool m_sameOriginRequest;
314 // True iff the ongoing resource loading is using the downloadToFile 309 // True iff the ongoing resource loading is using the downloadToFile
315 // option. 310 // option.
316 bool m_downloadingToFile; 311 bool m_downloadingToFile;
317 }; 312 };
318 313
319 } // namespace blink 314 } // namespace blink
320 315
321 #endif // XMLHttpRequest_h 316 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698