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

Unified Diff: chrome/browser/ui/download/download_tab_helper.h

Issue 6973052: When the download folder does not exist, change the download folder to a user's "Downloads" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Correct typo 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/ui/download/download_tab_helper.h
diff --git a/chrome/browser/ui/download/download_tab_helper.h b/chrome/browser/ui/download/download_tab_helper.h
index ac559136eb7b74d2056acbd2bdd50d8c95cb87db..7f3f7e0c86e00852510dac9219a66d78dead8109 100644
--- a/chrome/browser/ui/download/download_tab_helper.h
+++ b/chrome/browser/ui/download/download_tab_helper.h
@@ -37,6 +37,14 @@ class DownloadTabHelper : public TabContentsObserver {
bool SavePage(const FilePath& main_file, const FilePath& dir_path,
SavePackage::SavePackageType save_type);
+ // Save page. |website_save_dir| is the default folder for saving HTML.
+ // |download_save_dir| is the default folder for saving downloaded files.
+ // |save_type| is HTML only or complete web page.
+ // Returns the title of saved page.
+ string16 SavePageToProperDirectory(const FilePath& website_save_dir,
+ const FilePath& download_save_dir,
+ SavePackage::SavePackageType save_type);
Randy Smith (Not in Mondays) 2011/05/31 23:03:10 In general, I feel better about methods that are o
haraken1 2011/06/02 09:13:22 If we simply make these methods private and add FR
haraken1 2011/06/02 09:13:22 If we simply make these methods private and add FR
Randy Smith (Not in Mondays) 2011/06/02 19:13:57 What I've always done is move the tests (but not a
haraken1 2011/06/03 06:50:26 Done.
+
// Returns the SavePackage which manages the page saving job. May be NULL.
SavePackage* save_package() const { return save_package_.get(); }

Powered by Google App Engine
This is Rietveld 408576698