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

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

Issue 172074: Show or open downloaded items on the UI thread for Mac (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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_manager.cc ('k') | chrome/browser/download/save_file_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/save_file_manager.h
===================================================================
--- chrome/browser/download/save_file_manager.h (revision 23654)
+++ chrome/browser/download/save_file_manager.h (working copy)
@@ -115,14 +115,19 @@
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.
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/save_file_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698