Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1447)

Unified Diff: chrome/browser/download/download_manager.h

Issue 3442003: Regression fix: keep the download shelf visible when multiple sites are saved. (Closed)
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.h
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h
index cb864ae41b75a06712647f67e62cd2049632d389..f4dc78d7ae13626d22bb5bd4c98a9d99d97c530f 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -135,6 +135,9 @@ class DownloadManager
// deleted is returned back to the caller.
int RemoveAllDownloads();
+ // Called when a Save Page As download is started.
+ void SavePageAsDownloadStarted(DownloadItem* download_item);
+
// Download the object at the URL. Used in cases such as "Save Link As..."
void DownloadUrl(const GURL& url,
const GURL& referrer,
@@ -307,6 +310,10 @@ class DownloadManager
DownloadMap in_progress_;
DownloadMap dangerous_finished_;
+ // Collection of all save-page-as downloads in this profile.
+ // It owns the DownloadItems.
+ std::vector<DownloadItem*> save_page_downloads_;
+
// True if the download manager has been initialized and requires a shutdown.
bool shutdown_needed_;
« no previous file with comments | « no previous file | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698