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

Unified Diff: chrome/browser/download/download_target_determiner_delegate.h

Issue 14640020: [Resumption 9/11] Handle filename determination for resumed downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 7 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: chrome/browser/download/download_target_determiner_delegate.h
diff --git a/chrome/browser/download/download_target_determiner_delegate.h b/chrome/browser/download/download_target_determiner_delegate.h
index b303afe44d066ec4724da3a8dcdd28a962c533bb..68271ffc51a2d70e4a311162d2ad5ee736e9612a 100644
--- a/chrome/browser/download/download_target_determiner_delegate.h
+++ b/chrome/browser/download/download_target_determiner_delegate.h
@@ -72,8 +72,14 @@ class DownloadTargetDeterminerDelegate {
// Reserve |virtual_path|. This is expected to check the following:
// - Whether |virtual_path| can be written to by the user. If not, the
// |virtual_path| can be changed to writeable path if necessary.
- // - If |conflict_action| is UNIQUIFY then |virtual_path| should be modified
- // so that the new path is writeable and unique.
+ // - If |conflict_action| is UNIQUIFY then |virtual_path| should be
+ // modified so that the new path is writeable and unique. If
+ // |conflict_action| is PROMPT, then in the event of a conflict,
+ // |callback| should be invoked with |success| set to |false| in
+ // order to force a prompt. |virtual_path| may or may not be
+ // modified in the latter case.
+ // - If |create_directory| is true, then the parent directory of
+ // |virtual_path| should be created if it doesn't exist.
//
// |callback| should be invoked on completion with the results.
virtual void ReserveVirtualPath(
« no previous file with comments | « chrome/browser/download/download_target_determiner.cc ('k') | chrome/browser/download/download_target_determiner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698