diff options
author | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 14:12:48 +0000 |
---|---|---|
committer | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 14:12:48 +0000 |
commit | 052ec1a3e2150ceaedf762f9d5f08d2f261daf74 (patch) | |
tree | f1fd664bb02a60a78b2d8725631c3cf87a96b3df /chrome/browser/download/download_util.h | |
parent | f8eea788dbbbbf825ec9e895e625d68ef764d5ff (diff) | |
download | chromium_src-052ec1a3e2150ceaedf762f9d5f08d2f261daf74.zip chromium_src-052ec1a3e2150ceaedf762f9d5f08d2f261daf74.tar.gz chromium_src-052ec1a3e2150ceaedf762f9d5f08d2f261daf74.tar.bz2 |
Show that CRX unpacking is happening in the download shelf
BUG=80010
TEST=manual for now
Review URL: http://codereview.chromium.org/7047017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_util.h')
-rw-r--r-- | chrome/browser/download/download_util.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h index 4634743..e7726a9 100644 --- a/chrome/browser/download/download_util.h +++ b/chrome/browser/download/download_util.h @@ -12,6 +12,7 @@ #include "base/basictypes.h" #include "base/file_path.h" +#include "base/memory/ref_counted.h" #include "base/string16.h" #include "chrome/browser/download/download_process_handle.h" #include "ui/gfx/native_widget_types.h" @@ -21,6 +22,7 @@ #endif class BaseDownloadItemModel; +class CrxInstaller; class DictionaryValue; class DownloadItem; class DownloadManager; @@ -87,10 +89,13 @@ void GenerateFileName(const GURL& url, // full path to a file. void GenerateSafeFileName(const std::string& mime_type, FilePath* file_name); -// Opens downloaded Chrome extension file (*.crx). -void OpenChromeExtension(Profile* profile, - DownloadManager* download_manager, - const DownloadItem& download_item); +// Start installing a downloaded item item as a CRX (extension, theme, app, +// ...). The installer does work on the file thread, so the installation +// is not complete when this function returns. Returns the object managing +// the installation. +scoped_refptr<CrxInstaller> OpenChromeExtension( + Profile* profile, + const DownloadItem& download_item); // Download progress animations ------------------------------------------------ |