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

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

Issue 6905049: Detect removed files and reflect the state in chrome://downloads and the download shelf (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Correct typos Created 9 years, 7 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
Index: chrome/browser/download/download_manager.h
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h
index 84b83990bdc9d8b103e2cf6de26f95b2a6239305..13207ac68ba4e29441f3c238e2ae8bb3c3046941 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -70,6 +70,8 @@ class DownloadManager
public:
explicit DownloadManager(DownloadStatusUpdater* status_updater);
+ typedef std::vector<std::pair<int64, FilePath> > PathVector;
+
// Shutdown the download manager. Must be called before destruction.
void Shutdown();
@@ -233,6 +235,11 @@ class DownloadManager
// Called when the user has validated the download of a dangerous file.
void DangerousDownloadValidated(DownloadItem* download);
+ // Check if the path of each downloaded file still exists or not.
+ void CheckExistingPaths();
Paweł Hajdan Jr. 2011/05/10 07:59:46 nit: Would CheckForFilesRemoval (or similar) be a
+ void CheckExistingPathsOnFileThread(PathVector existing_paths);
Paweł Hajdan Jr. 2011/05/10 07:59:46 nit: Why not const PathVector&, here and below? A
+ void OnExistingPathsAvailable(PathVector removed_paths);
+
// Callback function after url is checked with safebrowsing service.
void CheckDownloadUrlDone(DownloadCreateInfo* info, bool is_dangerous_url);

Powered by Google App Engine
This is Rietveld 408576698