| Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| index 93bda38fb033ca761dd43870b97be5b7e9d2c865..7f7a81d0aa07fc2cbe16894509e89f7425a6262b 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| @@ -314,15 +314,14 @@ inline DocumentLoader* FrameFetchContext::masterDocumentLoader() const
|
|
|
| void FrameFetchContext::dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority loadPriority, int intraPriorityValue)
|
| {
|
| - frame()->loader().client()->dispatchDidChangeResourcePriority(identifier, loadPriority, intraPriorityValue);
|
| TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceChangePriority", TRACE_EVENT_SCOPE_THREAD, "data", InspectorChangeResourcePriorityEvent::data(identifier, loadPriority));
|
| InspectorInstrumentation::didChangeResourcePriority(frame(), identifier, loadPriority);
|
| }
|
|
|
| -void FrameFetchContext::prepareRequest(unsigned long identifier, ResourceRequest& request, const ResourceResponse& redirectResponse)
|
| +void FrameFetchContext::prepareRequest(ResourceRequest& request)
|
| {
|
| frame()->loader().applyUserAgent(request);
|
| - frame()->loader().client()->dispatchWillSendRequest(m_documentLoader, identifier, request, redirectResponse);
|
| + frame()->loader().client()->dispatchWillSendRequest(request);
|
| }
|
|
|
| void FrameFetchContext::dispatchWillSendRequest(unsigned long identifier, ResourceRequest& request, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& initiatorInfo)
|
| @@ -331,7 +330,7 @@ void FrameFetchContext::dispatchWillSendRequest(unsigned long identifier, Resour
|
| // willStartLoadingResource(), before revalidation policy is determined.
|
| // That call doesn't exist for redirects, so call preareRequest() here.
|
| if (!redirectResponse.isNull())
|
| - prepareRequest(identifier, request, redirectResponse);
|
| + prepareRequest(request);
|
| TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceSendRequest", TRACE_EVENT_SCOPE_THREAD, "data", InspectorSendRequestEvent::data(identifier, frame(), request));
|
| InspectorInstrumentation::willSendRequest(frame(), identifier, masterDocumentLoader(), request, redirectResponse, initiatorInfo);
|
| if (frame()->frameScheduler())
|
| @@ -360,8 +359,6 @@ void FrameFetchContext::dispatchDidDownloadData(unsigned long identifier, int da
|
| void FrameFetchContext::dispatchDidFinishLoading(unsigned long identifier, double finishTime, int64_t encodedDataLength)
|
| {
|
| frame()->loader().progress().completeProgress(identifier);
|
| - frame()->loader().client()->dispatchDidFinishLoading(m_documentLoader, identifier);
|
| -
|
| TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(identifier, finishTime, false));
|
| InspectorInstrumentation::didFinishLoading(frame(), identifier, finishTime, encodedDataLength);
|
| if (frame()->frameScheduler())
|
| @@ -371,7 +368,6 @@ void FrameFetchContext::dispatchDidFinishLoading(unsigned long identifier, doubl
|
| void FrameFetchContext::dispatchDidFail(unsigned long identifier, const ResourceError& error, bool isInternalRequest)
|
| {
|
| frame()->loader().progress().completeProgress(identifier);
|
| - frame()->loader().client()->dispatchDidFinishLoading(m_documentLoader, identifier);
|
| TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(identifier, 0, true));
|
| InspectorInstrumentation::didFailLoading(frame(), identifier, error);
|
| // Notification to FrameConsole should come AFTER InspectorInstrumentation call, DevTools front-end relies on this.
|
| @@ -421,7 +417,7 @@ void FrameFetchContext::willStartLoadingResource(unsigned long identifier, Resou
|
| {
|
| TRACE_EVENT_ASYNC_BEGIN1("blink.net", "Resource", identifier, "data", loadResourceTraceData(identifier, request.url(), request.priority()));
|
| frame()->loader().progress().willStartLoading(identifier);
|
| - prepareRequest(identifier, request, ResourceResponse());
|
| + prepareRequest(request);
|
|
|
| if (!m_documentLoader || m_documentLoader->fetcher()->archive() || !request.url().isValid())
|
| return;
|
| @@ -824,7 +820,7 @@ void FrameFetchContext::dispatchDidReceiveResponseInternal(unsigned long identif
|
| MixedContentChecker::handleCertificateError(frame(), response, frameType, requestContext);
|
|
|
| frame()->loader().progress().incrementProgress(identifier, response);
|
| - frame()->loader().client()->dispatchDidReceiveResponse(m_documentLoader, identifier, response);
|
| + frame()->loader().client()->dispatchDidReceiveResponse(response);
|
| TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceReceiveResponse", TRACE_EVENT_SCOPE_THREAD, "data", InspectorReceiveResponseEvent::data(identifier, frame(), response));
|
| DocumentLoader* documentLoader = masterDocumentLoader();
|
| InspectorInstrumentation::didReceiveResourceResponse(frame(), identifier, documentLoader, response, resource);
|
|
|