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

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

Issue 2877008: Rename the download to its final name only after the download is finished (Closed)
Patch Set: rebase Created 10 years, 5 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
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_util.h
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h
index 72af5d574fc33dea907b9eb58d10e57bba47a7b7..113a3a0dc4a6acebe09c3421b446f5f312bff0c8 100644
--- a/chrome/browser/download/download_util.h
+++ b/chrome/browser/download/download_util.h
@@ -178,6 +178,14 @@ void CancelDownloadRequest(ResourceDispatcherHost* rdh,
int render_process_id,
int request_id);
+// Same as GetUniquePathNumber, except that it also checks the existence
+// of its .crdownload intermediate path.
+// If |path| does not exist, 0 is returned. If it fails to find such
+// a number, -1 is returned.
+int GetUniquePathNumberWithCrDownload(const FilePath& path);
+
+// Returns a .crdownload intermediate path for the |suggested_path|.
+FilePath GetCrDownloadPath(const FilePath& suggested_path);
} // namespace download_util
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698