Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 993 | 993 |
| 994 if (responseTypeCode() == ResponseTypeStream) { | 994 if (responseTypeCode() == ResponseTypeStream) { |
| 995 request.setUseStreamOnResponse(true); | 995 request.setUseStreamOnResponse(true); |
| 996 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData; | 996 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData; |
| 997 } | 997 } |
| 998 | 998 |
| 999 m_exceptionCode = 0; | 999 m_exceptionCode = 0; |
| 1000 m_error = false; | 1000 m_error = false; |
| 1001 | 1001 |
| 1002 if (m_async) { | 1002 if (m_async) { |
| 1003 UseCounter::count(&executionContext, UseCounter::XMLHttpRequestAsynchron ous); | |
|
tyoshino (SeeGerritForStatus)
2015/01/27 05:07:42
This counts sendForInspectorXHRReplay(), too. It's
| |
| 1003 if (m_upload) | 1004 if (m_upload) |
| 1004 request.setReportUploadProgress(true); | 1005 request.setReportUploadProgress(true); |
| 1005 | 1006 |
| 1006 // ThreadableLoader::create can return null here, for example if we're n o longer attached to a page. | 1007 // ThreadableLoader::create can return null here, for example if we're n o longer attached to a page. |
| 1007 // This is true while running onunload handlers. | 1008 // This is true while running onunload handlers. |
| 1008 // FIXME: Maybe we need to be able to send XMLHttpRequests from onunload , <http://bugs.webkit.org/show_bug.cgi?id=10904>. | 1009 // FIXME: Maybe we need to be able to send XMLHttpRequests from onunload , <http://bugs.webkit.org/show_bug.cgi?id=10904>. |
| 1009 // FIXME: Maybe create() can return null for other reasons too? | 1010 // FIXME: Maybe create() can return null for other reasons too? |
| 1010 ASSERT(!m_loader); | 1011 ASSERT(!m_loader); |
| 1011 m_loader = ThreadableLoader::create(executionContext, this, request, opt ions, resourceLoaderOptions); | 1012 m_loader = ThreadableLoader::create(executionContext, this, request, opt ions, resourceLoaderOptions); |
| 1012 } else { | 1013 } else { |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1803 visitor->trace(m_responseDocumentParser); | 1804 visitor->trace(m_responseDocumentParser); |
| 1804 visitor->trace(m_progressEventThrottle); | 1805 visitor->trace(m_progressEventThrottle); |
| 1805 visitor->trace(m_upload); | 1806 visitor->trace(m_upload); |
| 1806 visitor->trace(m_blobLoader); | 1807 visitor->trace(m_blobLoader); |
| 1807 XMLHttpRequestEventTarget::trace(visitor); | 1808 XMLHttpRequestEventTarget::trace(visitor); |
| 1808 DocumentParserClient::trace(visitor); | 1809 DocumentParserClient::trace(visitor); |
| 1809 ActiveDOMObject::trace(visitor); | 1810 ActiveDOMObject::trace(visitor); |
| 1810 } | 1811 } |
| 1811 | 1812 |
| 1812 } // namespace blink | 1813 } // namespace blink |
| OLD | NEW |