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

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

Issue 2012873002: [DevTools] Add fetch support for XHR breakpoints (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 } 643 }
644 } 644 }
645 645
646 646
647 m_error = false; 647 m_error = false;
648 return true; 648 return true;
649 } 649 }
650 650
651 void XMLHttpRequest::send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrSt ringOrFormData& body, ExceptionState& exceptionState) 651 void XMLHttpRequest::send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrSt ringOrFormData& body, ExceptionState& exceptionState)
652 { 652 {
653 InspectorInstrumentation::willSendXMLHttpRequest(getExecutionContext(), url( )); 653 InspectorInstrumentation::willSendXMLHttpOrFetchNetworkRequest(getExecutionC ontext(), url());
654 654
655 if (body.isNull()) { 655 if (body.isNull()) {
656 send(String(), exceptionState); 656 send(String(), exceptionState);
657 return; 657 return;
658 } 658 }
659 659
660 if (body.isArrayBuffer()) { 660 if (body.isArrayBuffer()) {
661 send(body.getAsArrayBuffer(), exceptionState); 661 send(body.getAsArrayBuffer(), exceptionState);
662 return; 662 return;
663 } 663 }
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 visitor->trace(m_responseArrayBuffer); 1714 visitor->trace(m_responseArrayBuffer);
1715 visitor->trace(m_progressEventThrottle); 1715 visitor->trace(m_progressEventThrottle);
1716 visitor->trace(m_upload); 1716 visitor->trace(m_upload);
1717 visitor->trace(m_blobLoader); 1717 visitor->trace(m_blobLoader);
1718 XMLHttpRequestEventTarget::trace(visitor); 1718 XMLHttpRequestEventTarget::trace(visitor);
1719 DocumentParserClient::trace(visitor); 1719 DocumentParserClient::trace(visitor);
1720 ActiveDOMObject::trace(visitor); 1720 ActiveDOMObject::trace(visitor);
1721 } 1721 }
1722 1722
1723 } // namespace blink 1723 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698