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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 1738133002: Add support for media attribute on link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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) 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 LinkLoader::CanLoadResources resourceLoadingPolicy = LinkLoader::LoadResourc esAndPreconnect; 254 LinkLoader::CanLoadResources resourceLoadingPolicy = LinkLoader::LoadResourc esAndPreconnect;
255 MixedContentChecker::checkMixedPrivatePublic(frame(), response.remoteIPAddre ss()); 255 MixedContentChecker::checkMixedPrivatePublic(frame(), response.remoteIPAddre ss());
256 if (m_documentLoader == frame()->loader().provisionalDocumentLoader()) { 256 if (m_documentLoader == frame()->loader().provisionalDocumentLoader()) {
257 ResourceFetcher* fetcher = nullptr; 257 ResourceFetcher* fetcher = nullptr;
258 if (frame()->document()) 258 if (frame()->document())
259 fetcher = frame()->document()->fetcher(); 259 fetcher = frame()->document()->fetcher();
260 m_documentLoader->clientHintsPreferences().updateFromAcceptClientHintsHe ader(response.httpHeaderField(HTTPNames::Accept_CH), fetcher); 260 m_documentLoader->clientHintsPreferences().updateFromAcceptClientHintsHe ader(response.httpHeaderField(HTTPNames::Accept_CH), fetcher);
261 // When response is received with a provisional docloader, the resource haven't committed yet, and we cannot load resources, only preconnect. 261 // When response is received with a provisional docloader, the resource haven't committed yet, and we cannot load resources, only preconnect.
262 resourceLoadingPolicy = LinkLoader::DoNotLoadResources; 262 resourceLoadingPolicy = LinkLoader::DoNotLoadResources;
263 } 263 }
264 LinkLoader::loadLinkFromHeader(response.httpHeaderField(HTTPNames::Link), re sponse.url(), frame()->document(), NetworkHintsInterfaceImpl(), resourceLoadingP olicy); 264 LinkLoader::loadLinkFromHeader(response.httpHeaderField(HTTPNames::Link), re sponse.url(), frame()->document(), NetworkHintsInterfaceImpl(), resourceLoadingP olicy, nullptr);
265 265
266 if (response.hasMajorCertificateErrors()) 266 if (response.hasMajorCertificateErrors())
267 MixedContentChecker::handleCertificateError(frame(), response, frameType , requestContext); 267 MixedContentChecker::handleCertificateError(frame(), response, frameType , requestContext);
268 268
269 frame()->loader().progress().incrementProgress(identifier, response); 269 frame()->loader().progress().incrementProgress(identifier, response);
270 frame()->loader().client()->dispatchDidReceiveResponse(m_documentLoader, ide ntifier, response); 270 frame()->loader().client()->dispatchDidReceiveResponse(m_documentLoader, ide ntifier, response);
271 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceReceiveResponse", TRACE_E VENT_SCOPE_THREAD, "data", InspectorReceiveResponseEvent::data(identifier, frame (), response)); 271 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceReceiveResponse", TRACE_E VENT_SCOPE_THREAD, "data", InspectorReceiveResponseEvent::data(identifier, frame (), response));
272 DocumentLoader* documentLoader = ensureLoaderForNotifications(); 272 DocumentLoader* documentLoader = ensureLoaderForNotifications();
273 InspectorInstrumentation::didReceiveResourceResponse(frame(), identifier, do cumentLoader, response, resourceLoader); 273 InspectorInstrumentation::didReceiveResourceResponse(frame(), identifier, do cumentLoader, response, resourceLoader);
274 // It is essential that inspector gets resource response BEFORE console. 274 // It is essential that inspector gets resource response BEFORE console.
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 } 802 }
803 803
804 DEFINE_TRACE(FrameFetchContext) 804 DEFINE_TRACE(FrameFetchContext)
805 { 805 {
806 visitor->trace(m_document); 806 visitor->trace(m_document);
807 visitor->trace(m_documentLoader); 807 visitor->trace(m_documentLoader);
808 FetchContext::trace(visitor); 808 FetchContext::trace(visitor);
809 } 809 }
810 810
811 } // namespace blink 811 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698