diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:00:30 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:00:30 +0000 |
commit | a850ba49a28734c8660e04c52449a3b770a04d1b (patch) | |
tree | 7acfd8a08f0bc74e1af55a9553ba5b7720ef5903 /chrome/browser/download/download_manager.h | |
parent | cea5e4f176b0cbee7e1e2df373ebe48b850490c6 (diff) | |
download | chromium_src-a850ba49a28734c8660e04c52449a3b770a04d1b.zip chromium_src-a850ba49a28734c8660e04c52449a3b770a04d1b.tar.gz chromium_src-a850ba49a28734c8660e04c52449a3b770a04d1b.tar.bz2 |
GTTF: download cleanup, rename things to be more accurate.
Also, moved some code closer to the object it's operating on.
BUG=48913
TEST=unit_tests, ui_tests, browser_tests
Review URL: http://codereview.chromium.org/3341013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_manager.h')
-rw-r--r-- | chrome/browser/download/download_manager.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h index bff3822..cb864ae 100644 --- a/chrome/browser/download/download_manager.h +++ b/chrome/browser/download/download_manager.h @@ -110,7 +110,7 @@ class DownloadManager // Notifications sent from the download thread to the UI thread void StartDownload(DownloadCreateInfo* info); void UpdateDownload(int32 download_id, int64 size); - void DownloadFinished(int32 download_id, int64 size); + void OnAllDataSaved(int32 download_id, int64 size); // Called from a view when a user clicks a UI button or link. void DownloadCancelled(int32 download_id); @@ -165,14 +165,6 @@ class DownloadManager void ShowDownloadInBrowser(const DownloadCreateInfo& info, DownloadItem* download); - // Opens a download. For Chrome extensions call - // ExtensionsServices::InstallExtension, for everything else call - // OpenDownloadInShell. - void OpenDownload(DownloadItem* download, gfx::NativeView parent_window); - - // Show a download via the Windows shell. - void ShowDownloadInShell(const DownloadItem* download); - // The number of in progress (including paused) downloads. int in_progress_count() const { return static_cast<int>(in_progress_.size()); @@ -225,10 +217,6 @@ class DownloadManager ~DownloadManager(); - // Opens a download via the Windows shell. - void OpenDownloadInShell(DownloadItem* download, - gfx::NativeView parent_window); - // Called on the download thread to check whether the suggested file path // exists. We don't check if the file exists on the UI thread to avoid UI // stalls from interacting with the file system. @@ -241,8 +229,8 @@ class DownloadManager // Called back after a target path for the file to be downloaded to has been // determined, either automatically based on the suggested file name, or by // the user in a Save As dialog box. - void ContinueStartDownload(DownloadCreateInfo* info, - const FilePath& target_path); + void CreateDownloadItem(DownloadCreateInfo* info, + const FilePath& target_path); // Download cancel helper function. void DownloadCancelledInternal(int download_id, |