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

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

Issue 55046: Installing extensions (drag/drop, download crx file) will now be... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « chrome/browser/download/download_file.cc ('k') | 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
===================================================================
--- chrome/browser/download/download_manager.h (revision 12708)
+++ chrome/browser/download/download_manager.h (working copy)
@@ -335,6 +335,9 @@
void PauseDownload(int32 download_id, bool pause);
void RemoveDownload(int64 download_handle);
+ // Called when the download is renamed to its final name.
+ void DownloadRenamedToFinalName(int download_id, const FilePath& full_path);
+
// Remove downloads after remove_begin (inclusive) and before remove_end
// (exclusive). You may pass in null Time values to do an unbounded delete
// in either direction.
@@ -364,10 +367,14 @@
void OnSearchComplete(HistoryService::Handle handle,
std::vector<int64>* results);
- // Show or Open a download via the Windows shell.
+ // Opens a download. For Chrome extensions call
+ // ExtensionsServices::InstallExtension, for everything else call
+ // OpenDownloadInShell.
+ void OpenDownload(const DownloadItem* download,
+ gfx::NativeView parent_window);
+
+ // Show a download via the Windows shell.
void ShowDownloadInShell(const DownloadItem* download);
- void OpenDownloadInShell(const DownloadItem* download,
- gfx::NativeView parent_window);
// The number of in progress (including paused) downloads.
int in_progress_count() const {
@@ -420,6 +427,13 @@
FilePath* file_name);
private:
+ // Opens a download via the Windows shell.
+ void OpenDownloadInShell(const DownloadItem* download,
+ gfx::NativeView parent_window);
+
+ // Opens downloaded Chrome extension file (*.crx).
+ void OpenChromeExtension(const FilePath& full_path);
+
// Shutdown the download manager. This call is needed only after Init.
void Shutdown();
« no previous file with comments | « chrome/browser/download/download_file.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698