Lines Matching refs:download
107 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::decideDestinationWithSuggestedFilename(IWebDownload *download, BSTR filename)
109 LOG(Download, "DefaultDownloadDelegate %p - decideDestinationWithSuggestedFilename %s", download, String(filename, SysStringLen(filename)).ascii().data());
113 if (FAILED(download->setDestination(filename, true))) {
133 LOG(Download, "Setting path to %s", debug.ascii().data());
136 if (FAILED(download->setDestination(fullPath, true))) {
142 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didCancelAuthenticationChallenge(IWebDownload* download, IWebURLAuthenticationChallenge* challenge)
144 LOG(Download, "DefaultDownloadDelegate %p - didCancelAuthenticationChallenge %p", download, challenge);
145 download = 0;
149 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didCreateDestination(IWebDownload* download, BSTR destination)
151 LOG(Download, "DefaultDownloadDelegate %p - didCreateDestination %s", download, String(destination, SysStringLen(destination)).ascii().data());
152 download = 0;
157 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didReceiveAuthenticationChallenge(IWebDownload* download, IWebURLAuthenticationChallenge* challenge)
159 LOG(Download, "DefaultDownloadDelegate %p - didReceiveAuthenticationChallenge %p", download, challenge);
160 download = 0;
165 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didReceiveDataOfLength(IWebDownload* download, unsigned length)
167 LOG(Download, "DefaultDownloadDelegate %p - didReceiveDataOfLength %i", download, length);
168 download = 0;
173 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didReceiveResponse(IWebDownload* download, IWebURLResponse* response)
175 LOG(Download, "DefaultDownloadDelegate %p - didReceiveResponse %p", download, response);
176 download = 0;
181 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::shouldDecodeSourceDataOfMIMEType(IWebDownload* download, BSTR encodingType, BOOL* shouldDecode)
183 LOG(Download, "DefaultDownloadDelegate %p - shouldDecodeSourceDataOfMIMEType %s", download, String(encodingType, SysStringLen(encodingType)).ascii().data());
184 download = 0;
190 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::willResumeWithResponse(IWebDownload* download, IWebURLResponse* response, long long fromByte)
192 LOG(Download, "DefaultDownloadDelegate %p - willResumeWithResponse %p, %q", download, response, fromByte);
193 download = 0;
199 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::willSendRequest(IWebDownload* download, IWebMutableURLRequest* request,
202 LOG(Download, "DefaultDownloadDelegate %p - willSendRequest %p %p", download, request, redirectResponse);
203 download = 0;
210 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didBegin(IWebDownload* download)
212 LOG(Download, "DefaultDownloadDelegate %p - didBegin", download);
213 registerDownload(download);
217 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didFinish(IWebDownload* download)
219 LOG(Download, "DefaultDownloadDelegate %p - didFinish", download);
220 unregisterDownload(download);
224 HRESULT STDMETHODCALLTYPE DefaultDownloadDelegate::didFailWithError(IWebDownload* download, IWebError* error)
226 LOG(Download, "DefaultDownloadDelegate %p - didFailWithError %p", download, error);
227 unregisterDownload(download);
232 void DefaultDownloadDelegate::registerDownload(IWebDownload* download)
234 if (m_downloads.contains(download))
236 download->AddRef();
237 m_downloads.add(download);
240 void DefaultDownloadDelegate::unregisterDownload(IWebDownload* download)
242 if (m_downloads.contains(download)) {
243 download->Release();
244 m_downloads.remove(download);