Index: chrome/browser/download/download_util.h |
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h |
index 6ee8f8984bdc8f1830523e37500571d2e85bc3b9..72af5d574fc33dea907b9eb58d10e57bba47a7b7 100644 |
--- a/chrome/browser/download/download_util.h |
+++ b/chrome/browser/download/download_util.h |
@@ -25,7 +25,12 @@ class BaseDownloadItemModel; |
class DictionaryValue; |
class DownloadItem; |
class FilePath; |
+class GURL; |
+class ResourceDispatcherHost; |
class SkBitmap; |
+class URLRequestContextGetter; |
+ |
+struct DownloadSaveInfo; |
namespace download_util { |
@@ -157,6 +162,23 @@ void AppendNumberToPath(FilePath* path, int number); |
// a number, -1 is returned. |
int GetUniquePathNumber(const FilePath& path); |
+// Download the URL. Must be called on the IO thread. |
+void DownloadUrl(const GURL& url, |
+ const GURL& referrer, |
+ const std::string& referrer_charset, |
+ const DownloadSaveInfo& save_info, |
+ ResourceDispatcherHost* rdh, |
+ int render_process_host_id, |
+ int render_view_id, |
+ URLRequestContextGetter* request_context_getter); |
+ |
+// Tells the resource dispatcher host to cancel a download request. |
+// Must be called on the IO thread. |
+void CancelDownloadRequest(ResourceDispatcherHost* rdh, |
+ int render_process_id, |
+ int request_id); |
+ |
+ |
} // namespace download_util |
#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |