| Index: content/browser/download/download_file_impl.cc
|
| diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
|
| index f998432675513b7af860553678a6419650528959..46725506dc6f465e85dca5a8dc7acff1c78a618a 100644
|
| --- a/content/browser/download/download_file_impl.cc
|
| +++ b/content/browser/download/download_file_impl.cc
|
| @@ -16,11 +16,13 @@ using content::BrowserThread;
|
| DownloadFileImpl::DownloadFileImpl(
|
| const DownloadCreateInfo* info,
|
| DownloadRequestHandleInterface* request_handle,
|
| - DownloadManager* download_manager)
|
| + DownloadManager* download_manager,
|
| + const Pickle& hash_state)
|
| : file_(info->save_info.file_path,
|
| info->url(),
|
| info->referrer_url,
|
| info->received_bytes,
|
| + hash_state,
|
| info->save_info.file_stream),
|
| id_(info->download_id),
|
| request_handle_(request_handle),
|
| @@ -78,6 +80,14 @@ bool DownloadFileImpl::GetSha256Hash(std::string* hash) {
|
| return file_.GetSha256Hash(hash);
|
| }
|
|
|
| +bool DownloadFileImpl::GetSha256HashState(Pickle* hash_state) {
|
| + return file_.GetSha256HashState(hash_state);
|
| +}
|
| +
|
| +bool DownloadFileImpl::SetSha256HashState(Pickle* hash_state) {
|
| + return file_.SetSha256HashState(hash_state);
|
| +}
|
| +
|
| // DownloadFileInterface implementation.
|
| void DownloadFileImpl::CancelDownloadRequest() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
|
|
|