Index: chrome/browser/download/download_util.h |
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h |
index 37e8a82a350b311dfec0d94efaf34e01836332d0..755c871ed323ef5cc2c246793d7ec139198e97e3 100644 |
--- a/chrome/browser/download/download_util.h |
+++ b/chrome/browser/download/download_util.h |
@@ -141,6 +141,15 @@ void PaintDownloadComplete(gfx::Canvas* canvas, |
double animation_progress, |
PaintDownloadProgressSize size); |
+void PaintDownloadInterrupted(gfx::Canvas* canvas, |
+#if defined(TOOLKIT_VIEWS) |
+ views::View* containing_view, |
+#endif |
+ int origin_x, |
+ int origin_y, |
+ double animation_progress, |
+ PaintDownloadProgressSize size); |
+ |
// Drag support ---------------------------------------------------------------- |
// Helper function for download views to use when acting as a drag source for a |
@@ -198,6 +207,15 @@ void DownloadUrl(const GURL& url, |
int render_view_id, |
URLRequestContextGetter* request_context_getter); |
+// Restart the URL download. Must be called on the IO thread. |
+void RestartDownloadUrl(ResourceDispatcherHost* rdh, |
+ const GURL& url, |
+ const GURL& referrer, |
+ const FilePath& path, |
+ int64 start_offset, |
+ int render_process_host_id, |
+ int render_view_id); |
+ |
// Tells the resource dispatcher host to cancel a download request. |
// Must be called on the IO thread. |
void CancelDownloadRequest(ResourceDispatcherHost* rdh, |
@@ -213,6 +231,12 @@ int GetUniquePathNumberWithCrDownload(const FilePath& path); |
// Returns a .crdownload intermediate path for the |suggested_path|. |
FilePath GetCrDownloadPath(const FilePath& suggested_path); |
+// Removes a .crdownload from |cr_path| to get the original path. |
+FilePath RemoveCrDownloadPath(const FilePath& cr_path); |
+ |
+// Checks if the |path| is a temporary (.crdownload) path. |
+bool IsCrDownloadPath(const FilePath& path); |
+ |
} // namespace download_util |
#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |