void ArgumentCoder<ResourceError>::encode(ArgumentEncoder* encoder, const ResourceError& resourceError) { encoder->encode(resourceError.domain()); encoder->encode(resourceError.errorCode()); encoder->encode(resourceError.failingURL()); encoder->encode(resourceError.localizedDescription()); #if USE(CFNETWORK) encoder->encode(PlatformCertificateInfo(resourceError.certificate())); #endif }
void ArgumentCoder<ResourceError>::encodePlatformData(ArgumentEncoder& encoder, const ResourceError& resourceError) { encoder << PlatformCertificateInfo(resourceError); }
void NetworkResourceLoader::didReceiveResponseAsync(ResourceHandle* handle, const ResourceResponse& response) { ASSERT_UNUSED(handle, handle == m_handle); // FIXME (NetworkProcess): Cache the response. if (FormData* formData = request().httpBody()) formData->removeGeneratedFilesIfNeeded(); sendAbortingOnFailure(Messages::WebResourceLoader::DidReceiveResponseWithCertificateInfo(response, PlatformCertificateInfo(response), isLoadingMainResource())); // m_handle will be 0 if the request got aborted above. if (!m_handle) return; if (!isLoadingMainResource()) { // For main resources, the web process is responsible for sending back a NetworkResourceLoader::ContinueDidReceiveResponse message. m_handle->continueDidReceiveResponse(); } }