| Index: content/browser/download/download_item_impl.h
|
| diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
|
| index 0bdd238e0e34b41e8d2a3951bc5df9e241d9747b..1bcdcd43490117b36c119b764de75d0601d34743 100644
|
| --- a/content/browser/download/download_item_impl.h
|
| +++ b/content/browser/download/download_item_impl.h
|
| @@ -129,7 +129,6 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
|
| virtual void OnAllDataSaved(
|
| int64 size, const std::string& final_hash) OVERRIDE;
|
| virtual void OnDownloadedFileRemoved() OVERRIDE;
|
| - virtual void MaybeCompleteDownload() OVERRIDE;
|
| virtual void Interrupted(int64 size,
|
| const std::string& hash_state,
|
| content::DownloadInterruptReason reason) OVERRIDE;
|
| @@ -225,6 +224,11 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
|
| // hash state.
|
| void UpdateProgress(int64 bytes_so_far, const std::string& hash_state);
|
|
|
| + // If all pre-requisites have been met, complete download processing, i.e. do
|
| + // internal cleanup, file rename, and potentially auto-open. (Dangerous
|
| + // downloads still may block on user acceptance after this point.)
|
| + void MaybeCompleteDownload();
|
| +
|
| // Internal helper for maintaining consistent received and total sizes, and
|
| // setting the final hash.
|
| // Should only be called from |OnAllDataSaved|.
|
|
|