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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 | 1031 |
1032 // We also remember whether upload events should be allowed for this request
in case the upload listeners are | 1032 // We also remember whether upload events should be allowed for this request
in case the upload listeners are |
1033 // added after the request is started. | 1033 // added after the request is started. |
1034 m_uploadEventsAllowed = m_sameOriginRequest || uploadEvents || !FetchUtils::
isSimpleRequest(m_method, m_requestHeaders); | 1034 m_uploadEventsAllowed = m_sameOriginRequest || uploadEvents || !FetchUtils::
isSimpleRequest(m_method, m_requestHeaders); |
1035 | 1035 |
1036 ASSERT(executionContext()); | 1036 ASSERT(executionContext()); |
1037 ExecutionContext& executionContext = *this->executionContext(); | 1037 ExecutionContext& executionContext = *this->executionContext(); |
1038 | 1038 |
1039 ResourceRequest request(m_url); | 1039 ResourceRequest request(m_url); |
1040 request.setHTTPMethod(m_method); | 1040 request.setHTTPMethod(m_method); |
1041 request.setRequestContext(blink::WebURLRequest::RequestContextXMLHttpRequest
); | 1041 request.setRequestContext(WebURLRequest::RequestContextXMLHttpRequest); |
1042 request.setFetchCredentialsMode(m_includeCredentials ? WebURLRequest::FetchC
redentialsModeInclude : WebURLRequest::FetchCredentialsModeSameOrigin); | 1042 request.setFetchCredentialsMode(m_includeCredentials ? WebURLRequest::FetchC
redentialsModeInclude : WebURLRequest::FetchCredentialsModeSameOrigin); |
1043 | 1043 |
1044 InspectorInstrumentation::willLoadXHR(&executionContext, this, this, m_metho
d, m_url, m_async, httpBody ? httpBody->deepCopy() : nullptr, m_requestHeaders,
m_includeCredentials); | 1044 InspectorInstrumentation::willLoadXHR(&executionContext, this, this, m_metho
d, m_url, m_async, httpBody ? httpBody->deepCopy() : nullptr, m_requestHeaders,
m_includeCredentials); |
1045 | 1045 |
1046 if (httpBody) { | 1046 if (httpBody) { |
1047 ASSERT(m_method != "GET"); | 1047 ASSERT(m_method != "GET"); |
1048 ASSERT(m_method != "HEAD"); | 1048 ASSERT(m_method != "HEAD"); |
1049 request.setHTTPBody(httpBody); | 1049 request.setHTTPBody(httpBody); |
1050 } | 1050 } |
1051 | 1051 |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1887 visitor->trace(m_responseDocumentParser); | 1887 visitor->trace(m_responseDocumentParser); |
1888 visitor->trace(m_progressEventThrottle); | 1888 visitor->trace(m_progressEventThrottle); |
1889 visitor->trace(m_upload); | 1889 visitor->trace(m_upload); |
1890 visitor->trace(m_blobLoader); | 1890 visitor->trace(m_blobLoader); |
1891 XMLHttpRequestEventTarget::trace(visitor); | 1891 XMLHttpRequestEventTarget::trace(visitor); |
1892 DocumentParserClient::trace(visitor); | 1892 DocumentParserClient::trace(visitor); |
1893 ActiveDOMObject::trace(visitor); | 1893 ActiveDOMObject::trace(visitor); |
1894 } | 1894 } |
1895 | 1895 |
1896 } // namespace blink | 1896 } // namespace blink |
OLD | NEW |