}
}
-void FileReaderLoader::didReceiveResponse(unsigned long, const ResourceResponse& response)
+void FileReaderLoader::didReceiveResponse(unsigned long, const ResourceResponse& response, PassOwnPtr<WebDataConsumerHandle> handle)
{
+ ASSERT_UNUSED(handle, !handle);
if (response.httpStatusCode() != 200) {
failed(httpStatusCodeToErrorCode(response.httpStatusCode()));
return;
m_client->didStartLoading();
}
-void FileReaderLoader::didReceiveData(const char* data, int dataLength)
+void FileReaderLoader::didReceiveData(const char* data, unsigned dataLength)
{
ASSERT(data);
- ASSERT(dataLength > 0);
// Bail out if we already encountered an error.
if (m_errorCode)
return;
}
- unsigned bytesAppended = m_rawData->append(data, static_cast<unsigned>(dataLength));
+ unsigned bytesAppended = m_rawData->append(data, dataLength);
if (!bytesAppended) {
m_rawData.clear();
m_bytesLoaded = 0;