OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 LinkLoader::CanLoadResources resourceLoadingPolicy = LinkLoader::LoadResourc
esAndPreconnect; | 257 LinkLoader::CanLoadResources resourceLoadingPolicy = LinkLoader::LoadResourc
esAndPreconnect; |
258 MixedContentChecker::checkMixedPrivatePublic(frame(), response.remoteIPAddre
ss()); | 258 MixedContentChecker::checkMixedPrivatePublic(frame(), response.remoteIPAddre
ss()); |
259 if (m_documentLoader == frame()->loader().provisionalDocumentLoader()) { | 259 if (m_documentLoader == frame()->loader().provisionalDocumentLoader()) { |
260 ResourceFetcher* fetcher = nullptr; | 260 ResourceFetcher* fetcher = nullptr; |
261 if (frame()->document()) | 261 if (frame()->document()) |
262 fetcher = frame()->document()->fetcher(); | 262 fetcher = frame()->document()->fetcher(); |
263 m_documentLoader->clientHintsPreferences().updateFromAcceptClientHintsHe
ader(response.httpHeaderField(HTTPNames::Accept_CH), fetcher); | 263 m_documentLoader->clientHintsPreferences().updateFromAcceptClientHintsHe
ader(response.httpHeaderField(HTTPNames::Accept_CH), fetcher); |
264 // When response is received with a provisional docloader, the resource
haven't committed yet, and we cannot load resources, only preconnect. | 264 // When response is received with a provisional docloader, the resource
haven't committed yet, and we cannot load resources, only preconnect. |
265 resourceLoadingPolicy = LinkLoader::DoNotLoadResources; | 265 resourceLoadingPolicy = LinkLoader::DoNotLoadResources; |
266 } | 266 } |
267 LinkLoader::loadLinksFromHeader(response.httpHeaderField(HTTPNames::Link), r
esponse.url(), frame()->document(), NetworkHintsInterfaceImpl(), resourceLoading
Policy); | 267 LinkLoader::loadLinksFromHeader(response.httpHeaderField(HTTPNames::Link), r
esponse.url(), frame()->document(), NetworkHintsInterfaceImpl(), resourceLoading
Policy, nullptr); |
268 | 268 |
269 if (response.hasMajorCertificateErrors()) | 269 if (response.hasMajorCertificateErrors()) |
270 MixedContentChecker::handleCertificateError(frame(), response, frameType
, requestContext); | 270 MixedContentChecker::handleCertificateError(frame(), response, frameType
, requestContext); |
271 | 271 |
272 frame()->loader().progress().incrementProgress(identifier, response); | 272 frame()->loader().progress().incrementProgress(identifier, response); |
273 frame()->loader().client()->dispatchDidReceiveResponse(m_documentLoader, ide
ntifier, response); | 273 frame()->loader().client()->dispatchDidReceiveResponse(m_documentLoader, ide
ntifier, response); |
274 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceReceiveResponse", TRACE_E
VENT_SCOPE_THREAD, "data", InspectorReceiveResponseEvent::data(identifier, frame
(), response)); | 274 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceReceiveResponse", TRACE_E
VENT_SCOPE_THREAD, "data", InspectorReceiveResponseEvent::data(identifier, frame
(), response)); |
275 DocumentLoader* documentLoader = ensureLoaderForNotifications(); | 275 DocumentLoader* documentLoader = ensureLoaderForNotifications(); |
276 InspectorInstrumentation::didReceiveResourceResponse(frame(), identifier, do
cumentLoader, response, resourceLoader); | 276 InspectorInstrumentation::didReceiveResourceResponse(frame(), identifier, do
cumentLoader, response, resourceLoader); |
277 // It is essential that inspector gets resource response BEFORE console. | 277 // It is essential that inspector gets resource response BEFORE console. |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 } | 805 } |
806 | 806 |
807 DEFINE_TRACE(FrameFetchContext) | 807 DEFINE_TRACE(FrameFetchContext) |
808 { | 808 { |
809 visitor->trace(m_document); | 809 visitor->trace(m_document); |
810 visitor->trace(m_documentLoader); | 810 visitor->trace(m_documentLoader); |
811 FetchContext::trace(visitor); | 811 FetchContext::trace(visitor); |
812 } | 812 } |
813 | 813 |
814 } // namespace blink | 814 } // namespace blink |
OLD | NEW |