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

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

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/xml/XMLHttpRequest.h ('k') | no next file » | 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) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org>
4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org>
5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved.
6 * Copyright (C) 2012 Intel Corporation 6 * Copyright (C) 2012 Intel Corporation
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return xmlHttpRequest.release(); 189 return xmlHttpRequest.release();
190 } 190 }
191 191
192 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri gin> securityOrigin) 192 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri gin> securityOrigin)
193 : ActiveDOMObject(context) 193 : ActiveDOMObject(context)
194 , m_timeoutMilliseconds(0) 194 , m_timeoutMilliseconds(0)
195 , m_loaderIdentifier(0) 195 , m_loaderIdentifier(0)
196 , m_state(UNSENT) 196 , m_state(UNSENT)
197 , m_lengthDownloadedToFile(0) 197 , m_lengthDownloadedToFile(0)
198 , m_receivedLength(0) 198 , m_receivedLength(0)
199 , m_lastSendLineNumber(0)
200 , m_exceptionCode(0) 199 , m_exceptionCode(0)
201 , m_progressEventThrottle(this) 200 , m_progressEventThrottle(this)
202 , m_responseTypeCode(ResponseTypeDefault) 201 , m_responseTypeCode(ResponseTypeDefault)
203 , m_securityOrigin(securityOrigin) 202 , m_securityOrigin(securityOrigin)
204 , m_async(true) 203 , m_async(true)
205 , m_includeCredentials(false) 204 , m_includeCredentials(false)
206 , m_parsedResponse(false) 205 , m_parsedResponse(false)
207 , m_error(false) 206 , m_error(false)
208 , m_uploadEventsAllowed(true) 207 , m_uploadEventsAllowed(true)
209 , m_uploadComplete(false) 208 , m_uploadComplete(false)
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 if (!m_responseDocument->wellFormed()) 1443 if (!m_responseDocument->wellFormed())
1445 m_responseDocument = nullptr; 1444 m_responseDocument = nullptr;
1446 1445
1447 m_parsedResponse = true; 1446 m_parsedResponse = true;
1448 1447
1449 endLoading(); 1448 endLoading();
1450 } 1449 }
1451 1450
1452 void XMLHttpRequest::endLoading() 1451 void XMLHttpRequest::endLoading()
1453 { 1452 {
1454 InspectorInstrumentation::didFinishXHRLoading(executionContext(), this, this , m_loaderIdentifier, m_responseText, m_method, m_url, m_lastSendURL, m_lastSend LineNumber); 1453 InspectorInstrumentation::didFinishXHRLoading(executionContext(), this, this , m_loaderIdentifier, m_responseText, m_method, m_url);
1455 1454
1456 if (m_loader) 1455 if (m_loader)
1457 m_loader = nullptr; 1456 m_loader = nullptr;
1458 m_loaderIdentifier = 0; 1457 m_loaderIdentifier = 0;
1459 1458
1460 changeState(DONE); 1459 changeState(DONE);
1461 } 1460 }
1462 1461
1463 void XMLHttpRequest::didSendData(unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent) 1462 void XMLHttpRequest::didSendData(unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent)
1464 { 1463 {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 visitor->trace(m_responseDocument); 1674 visitor->trace(m_responseDocument);
1676 visitor->trace(m_responseDocumentParser); 1675 visitor->trace(m_responseDocumentParser);
1677 visitor->trace(m_progressEventThrottle); 1676 visitor->trace(m_progressEventThrottle);
1678 visitor->trace(m_upload); 1677 visitor->trace(m_upload);
1679 visitor->trace(m_blobLoader); 1678 visitor->trace(m_blobLoader);
1680 XMLHttpRequestEventTarget::trace(visitor); 1679 XMLHttpRequestEventTarget::trace(visitor);
1681 DocumentParserClient::trace(visitor); 1680 DocumentParserClient::trace(visitor);
1682 } 1681 }
1683 1682
1684 } // namespace blink 1683 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698