Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Unified Diff: content/browser/download/download_item_impl.h

Issue 11150027: Handle the case where IAttachmentExecute::Save() deletes a downloaded file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 432428905f6e7139657c5b51d8943a04260ecdf7..97ea97bf3ead544d1063fda15f102e54f3de432e 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -213,10 +213,10 @@ class CONTENT_EXPORT DownloadItemImpl
// TODO(rdsmith): Put in state variable for file name determination.
IN_PROGRESS_INTERNAL,
- // Between commit point (dispatch of download file release) and
- // completed. Embedder may be opening the file in this state.
- // Note that the DownloadItem may be deleted (by shutdown) in this
- // state.
+ // Between commit point (dispatch of download file release) and completed.
+ // Embedder may be opening the file in this state. Note that the
+ // DownloadItem may be deleted (by shutdown) or interrupted (e.g. due to a
+ // failure during AnnotateWithSourceInformation()) in this state.
COMPLETING_INTERNAL,
// After embedder has had a chance to auto-open. User may now open
@@ -286,7 +286,7 @@ class CONTENT_EXPORT DownloadItemImpl
void ReleaseDownloadFile();
- void OnDownloadFileReleased();
+ void OnDownloadFileReleased(content::DownloadInterruptReason reason);
Randy Smith (Not in Mondays) 2012/10/27 23:54:28 After having banged my head against the state mach
asanka 2012/10/29 15:33:59 Done.
// Called when the entire download operation (including renaming etc)
// is completed.

Powered by Google App Engine
This is Rietveld 408576698