void ResourceHandle::loadResourceSynchronously(NetworkingContext*, const ResourceRequest& request, StoredCredentials storedCredentials, ResourceError& error, ResourceResponse& response, Vector<char>& data) { WebCoreSynchronousLoader syncLoader; RefPtr<ResourceHandle> handle = adoptRef(new ResourceHandle(request, &syncLoader, true, false)); ResourceHandleManager* manager = ResourceHandleManager::sharedInstance(); manager->dispatchSynchronousJob(handle.get()); error = syncLoader.resourceError(); data = syncLoader.data(); response = syncLoader.resourceResponse(); }
void ResourceHandle::loadResourceSynchronously(const ResourceRequest& request, StoredCredentials storedCredentials, ResourceError& error, ResourceResponse& response, Vector<char>& data, Frame*) { WebCoreSynchronousLoader syncLoader; ResourceHandle handle(request, &syncLoader, true, false, true); ResourceHandleManager* manager = ResourceHandleManager::sharedInstance(); manager->dispatchSynchronousJob(&handle); error = syncLoader.resourceError(); data = syncLoader.data(); response = syncLoader.resourceResponse(); }