diff options
Diffstat (limited to 'chrome/browser/download/download_util.h')
-rw-r--r-- | chrome/browser/download/download_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h index 7636b55..93114fe 100644 --- a/chrome/browser/download/download_util.h +++ b/chrome/browser/download/download_util.h @@ -23,6 +23,7 @@ class Canvas; } class BaseDownloadItemModel; +class DictionaryValue; class DownloadItem; class SkBitmap; @@ -134,6 +135,15 @@ void DragDownload(const DownloadItem* download, // Determine if the specified extension is an executable extension. bool IsExecutableExtension(const std::string& extension); +// Helpers --------------------------------------------------------------------- + +// Creates a representation of a download in a format that the downloads +// HTML page can understand. +DictionaryValue* CreateDownloadItemValue(DownloadItem* download, int id); + +// Get the localized status text for an in-progress download. +std::wstring GetProgressStatusText(DownloadItem* download); + } // namespace download_util #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |