Lines Matching refs:download
62 static void didStartCallback(CFURLDownloadRef download, const void *clientInfo);
63 static CFURLRequestRef willSendRequestCallback(CFURLDownloadRef download, CFURLRequestRef request, CFURLResponseRef redirectionResponse, const void *clientInfo);
64 static void didReceiveAuthenticationChallengeCallback(CFURLDownloadRef download, CFURLAuthChallengeRef challenge, const void *clientInfo);
65 static void didReceiveResponseCallback(CFURLDownloadRef download, CFURLResponseRef response, const void *clientInfo);
66 static void willResumeWithResponseCallback(CFURLDownloadRef download, CFURLResponseRef response, UInt64 startingByte, const void *clientInfo);
67 static void didReceiveDataCallback(CFURLDownloadRef download, CFIndex length, const void *clientInfo);
68 static Boolean shouldDecodeDataOfMIMETypeCallback(CFURLDownloadRef download, CFStringRef encodingType, const void *clientInfo);
69 static void decideDestinationWithSuggestedObjectNameCallback(CFURLDownloadRef download, CFStringRef objectName, const void *clientInfo);
70 static void didCreateDestinationCallback(CFURLDownloadRef download, CFURLRef path, const void *clientInfo);
71 static void didFinishCallback(CFURLDownloadRef download, const void *clientInfo);
72 static void didFailCallback(CFURLDownloadRef download, CFErrorRef error, const void *clientInfo);
96 LOG(Download, "WebDownload - Created WebDownload %p from existing connection (%s)", this, request.url().string().utf8().data());
122 LOG(Download, "WebDownload - Initialized download of url %s in WebDownload %p", url.string().utf8().data(), this);
133 LOG(Download, "WebDownload - initWithRequest failed - not a WebMutableURLRequest");
140 LOG(Download, "Delegate is %p", m_delegate.get());
150 // If for some reason the download failed to create,
160 LOG(Download, "WebDownload - initWithRequest complete, started download of url %s", webRequest->resourceRequest().url().string().utf8().data());
168 LOG(Download, "Attempting resume of download bundle %s", String(bundlePath, SysStringLen(bundlePath)).ascii().data());
178 LOG(Download, "Delegate is %p", m_delegate.get());
190 LOG(Download, "Failed to create CFURLDownloadRef for resume");
195 // Attempt to remove the ".download" extension from the bundle for the final file destination
196 // Failing that, we clear m_destination and will ask the delegate later once the download starts
206 LOG(Download, "WebDownload - initWithRequest complete, resumed download of bundle %s", String(bundlePath, SysStringLen(bundlePath)).ascii().data());
212 LOG(Download, "WebDownload - Starting download (%p)", this);
217 // FIXME: 4950477 - CFURLDownload neglects to make the didStart() client call upon starting the download.
226 LOG(Download, "WebDownload - Cancelling download (%p)", this);
237 LOG(Download, "WebDownload - Cancelling download (%p), writing resume information to file if possible", this);
254 LOG(Download, "WebDownload - Unable to create resume data for download (%p)", this);
297 LOG(Download, "WebDownload - Set destination to %s", m_bundlePath.ascii().data());
357 LOG(Download, "DOWNLOAD - Started %p at %.3f seconds", this, m_startTime);
423 LOG(Download, "DOWNLOAD - %p hanged for %.3f seconds - Received %i bytes for a total of %i", this, current - m_dataTime, length, m_received);
448 // The concept of the ".download bundle" is internal to the WebDownload, so therefore
468 LOG(Download, "DOWNLOAD - Finished %p after %i bytes and %.3f seconds", this, m_received, currentTime() - m_startTime);
472 LOG(Download, "WebDownload - Moving file from bundle %s to destination %s", m_bundlePath.ascii().data(), m_destination.ascii().data());