Lines Matching refs:resourceRequest
83 static Resource* createResource(Resource::Type type, const ResourceRequest& request, const String& charset)
158 static Resource* resourceFromDataURIRequest(const ResourceRequest& request, const ResourceLoaderOptions& resourceOptions)
181 info->setInitialRequest(resource->resourceRequest());
308 if (request.resourceRequest().requestContext() == WebURLRequest::RequestContextUnspecified)
312 KURL requestURL = request.resourceRequest().url();
313 if (requestURL.isValid() && canRequest(Resource::Image, request.resourceRequest(), requestURL, request.options(), request.forPreload(), request.originRestriction()))
319 if (request.resourceRequest().url().protocolIsData())
322 request.setDefer(clientDefersImage(request.resourceRequest().url()) ? FetchRequest::DeferredByClient : FetchRequest::NoDefer);
329 const KURL& url = request.resourceRequest().url();
335 if (Resource* resource = resourceFromDataURIRequest(request.resourceRequest(), request.options())) {
343 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
350 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
357 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
364 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
378 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
387 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
394 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
395 ASSERT(request.resourceRequest().requestContext() != WebURLRequest::RequestContextUnspecified);
401 ASSERT(request.resourceRequest().frameType() != WebURLRequest::FrameTypeNone);
402 ASSERT(request.resourceRequest().requestContext() == WebURLRequest::RequestContextForm || request.resourceRequest().requestContext() == WebURLRequest::RequestContextFrame || request.resourceRequestresourceRequest().requestContext() == WebURLRequest::RequestContextIframe || request.resourceRequest().requestContext() == WebURLRequest::RequestContextInternal || request.resourceRequest().requestContext() == WebURLRequest::RequestContextLocation);
411 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
419 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
431 ResourcePtr<Resource> resource = createResource(Resource::MainResource, request.resourceRequest(), substituteData.textEncoding());
442 bool ResourceFetcher::canRequest(Resource::Type type, const ResourceRequest& resourceRequest, const KURL& url, const ResourceLoaderOptions& options, bool forPreload, FetchRequest::OriginRestriction originRestriction) const
562 if (resourceRequest.frameType() != WebURLRequest::FrameTypeTopLevel) {
576 if (resourceRequest.frameType() == WebURLRequest::FrameTypeNested) {
582 return !MixedContentChecker::shouldBlockFetch(effectiveFrame, resourceRequest, url);
588 if (!canRequest(resource->type(), resource->resourceRequest(), url, resource->options(), resource->isUnusedPreload(), FetchRequest::UseDefaultOriginRestrictionForType))
637 if (request.resourceRequest().url().protocolIsData() || (m_documentLoader && m_documentLoader->substituteData().isValid()))
640 if (type == ResourceLoadingFromCache && !resource->stillNeedsLoad() && !m_validatedURLs.contains(request.resourceRequest().url())) {
649 m_validatedURLs.add(request.resourceRequest().url());
658 KURL url = request.resourceRequest().url();
668 if (!canRequest(type, request.resourceRequest(), url, request.options(), request.forPreload(), request.originRestriction()))
719 if (priority != resource->resourceRequest().priority()) {
732 if (!m_documentLoader || !m_documentLoader->scheduleArchiveLoad(resource.get(), request.resourceRequest()))
779 void ResourceFetcher::determineRequestContext(ResourceRequest& request, Resource::Type type)
785 ResourceRequestCachePolicy ResourceFetcher::resourceRequestCachePolicy(const ResourceRequest& request, Resource::Type type)
820 void ResourceFetcher::addAdditionalRequestHeaders(ResourceRequest& request, Resource::Type type)
843 ResourceRequest revalidatingRequest(resource->resourceRequest());
871 ASSERT(!memoryCache()->resourceForURL(request.resourceRequest().url()));
873 WTF_LOG(ResourceLoading, "Loading Resource for '%s'.", request.resourceRequest().url().elidedString().latin1().data());
876 ResourcePtr<Resource> resource = createResource(type, request.resourceRequest(), charset);
910 const ResourceRequest& request = fetchRequest.resourceRequest();
984 if (existingResource->resourceRequest().allowStoredCredentials() != request.allowStoredCredentials()) {
1165 ResourceRequest request(resource->url());
1282 void ResourceFetcher::willSendRequest(unsigned long identifier, ResourceRequest& request, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& initiatorInfo)
1293 if (!canRequest(resource->type(), resource->resourceRequest(), response.url(), resource->options(), false, FetchRequest::UseDefaultOriginRestrictionForType)) {
1342 void ResourceFetcher::willStartLoadingResource(Resource* resource, ResourceRequest& request)
1348 TRACE_EVENT_ASYNC_BEGIN2("net", "Resource", resource, "url", resource->url().string().ascii(), "priority", resource->resourceRequest().priority());
1382 bool ResourceFetcher::canAccessRedirect(Resource* resource, ResourceRequest& request, const ResourceResponse& redirectResponse, ResourceLoaderOptions& options)