diff options
author | paul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 22:29:58 +0000 |
---|---|---|
committer | paul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 22:29:58 +0000 |
commit | 8b6ff019c982f3929cf09b7090c9ec38c2751fc1 (patch) | |
tree | 015a4b4a26fd5c8729fa1f3a3f57e25e8666e586 /chrome/browser/download/save_file_manager.h | |
parent | 7c23cfc44c6fa5d224acd7cae942dc7310138c7b (diff) | |
download | chromium_src-8b6ff019c982f3929cf09b7090c9ec38c2751fc1.zip chromium_src-8b6ff019c982f3929cf09b7090c9ec38c2751fc1.tar.gz chromium_src-8b6ff019c982f3929cf09b7090c9ec38c2751fc1.tar.bz2 |
Show or open downloaded items on the UI thread for Mac. This is
required because NSWorkspace, which is used for the open or show
operation, must be called on the main thread.
BUG=19447 (http://crbug.com/19447)
TEST=Repro steps fully described in the bug report.
Review URL: http://codereview.chromium.org/172074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/save_file_manager.h')
-rw-r--r-- | chrome/browser/download/save_file_manager.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/download/save_file_manager.h b/chrome/browser/download/save_file_manager.h index 34c2f12..db1e866 100644 --- a/chrome/browser/download/save_file_manager.h +++ b/chrome/browser/download/save_file_manager.h @@ -115,14 +115,19 @@ class SaveFileManager void RemoveSaveFile(int save_id, const GURL& save_url, SavePackage* package); - // Handler for shell operations sent from the UI to the file thread. +#if !defined(OS_MACOSX) + // Handler for shell operations sent from the UI to the file thread. Mac OS X + // requires opening downloads on the UI thread, so it does not use this + // method. void OnShowSavedFileInShell(const FilePath full_path); +#endif // Helper function for deleting specified file. void DeleteDirectoryOrFile(const FilePath& full_path, bool is_dir); - // For posting notifications from the UI and IO threads. - MessageLoop* GetSaveLoop() const { return file_loop_; } + // For posting notifications from the UI and file threads. + MessageLoop* ui_loop() const { return ui_loop_; } + MessageLoop* file_loop() const { return file_loop_; } // Runs on file thread to save a file by copying from file system when // original url is using file scheme. |