Home | History | Annotate | Download | only in loader

Lines Matching refs:frame

38 #include "core/frame/LocalFrame.h"
59 void PingLoader::loadImage(LocalFrame* frame, const KURL& url)
61 if (!frame->document()->securityOrigin()->canDisplay(url)) {
62 FrameLoader::reportLocalLoadFailed(frame, url.string());
69 frame->loader().fetchContext().addAdditionalRequestHeaders(frame->document(), request, FetchSubresource);
70 frame->loader().fetchContext().setFirstPartyForCookies(request);
74 PingLoader::start(frame, request, initiatorInfo);
78 void PingLoader::sendLinkAuditPing(LocalFrame* frame, const KURL& pingURL, const KURL& destinationURL)
86 frame->loader().fetchContext().addAdditionalRequestHeaders(frame->document(), request, FetchSubresource);
87 frame->loader().fetchContext().setFirstPartyForCookies(request);
92 if (frame->document()->securityOrigin()->isSameSchemeHostPort(pingOrigin.get()))
99 if (!SecurityPolicy::shouldHideReferrer(pingURL, frame->document()->url().string()))
100 request.setHTTPHeaderField("Ping-From", AtomicString(frame->document()->url().string()));
104 PingLoader::start(frame, request, initiatorInfo);
107 void PingLoader::sendViolationReport(LocalFrame* frame, const KURL& reportURL, PassRefPtr<FormData> report, ViolationReportType type)
114 frame->loader().fetchContext().addAdditionalRequestHeaders(frame->document(), request, FetchSubresource);
115 frame->loader().fetchContext().setFirstPartyForCookies(request);
119 PingLoader::start(frame, request, initiatorInfo, SecurityOrigin::create(reportURL)->isSameSchemeHostPort(frame->document()->securityOrigin()) ? AllowStoredCredentials : DoNotAllowStoredCredentials);
122 void PingLoader::start(LocalFrame* frame, ResourceRequest& request, const FetchInitiatorInfo& initiatorInfo, StoredCredentials credentialsAllowed)
124 if (!frame->loader().mixedContentChecker()->canRunInsecureContent(frame->document()->securityOrigin(), request.url()))
127 OwnPtr<PingLoader> pingLoader = adoptPtr(new PingLoader(frame, request, initiatorInfo, credentialsAllowed));
133 PingLoader::PingLoader(LocalFrame* frame, ResourceRequest& request, const FetchInitiatorInfo& initiatorInfo, StoredCredentials credentialsAllowed)
134 : PageLifecycleObserver(frame->page())
139 frame->loader().client()->didDispatchPingLoader(request.url());
141 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "ResourceSendRequest", "data", InspectorSendRequestEvent::data(m_identifier, frame, request));
144 InspectorInstrumentation::willSendRequest(frame, m_identifier, frame->loader().documentLoader(), request, ResourceResponse(), initiatorInfo);