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

Unified Diff: chrome/browser/download/save_package.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/download/save_package.h
diff --git a/chrome/browser/download/save_package.h b/chrome/browser/download/save_package.h
index 74f55267f413a098d4aeefbdcf411792123bf614..2642ad985b9d0297c16daa5780af9675a616792e 100644
--- a/chrome/browser/download/save_package.h
+++ b/chrome/browser/download/save_package.h
@@ -124,8 +124,19 @@ class SavePackage : public base::RefCountedThreadSafe<SavePackage>,
int tab_id() const { return tab_id_; }
int id() const { return unique_id_; }
+ // Determines the saved file name based on the information of the
+ // current page, and then starts to download the page. This method
+ // runs in the background and may finish asynchronously after this
+ // method returns.
void GetSaveInfo();
+ // Used in automated testing. This method basically does the same thing
+ // as GetSaveInfo(), but we can explicitly specify the default folder for
+ // saving HTML and the default folder for saving downloaded files.
+ void GetSaveInfo(const FilePath& website_save_dir,
+ const FilePath& download_save_dir,
+ SavePackageType save_type);
Randy Smith (Not in Mondays) 2011/05/31 23:03:10 The C++ style guide discourages overloading; see h
haraken1 2011/06/02 09:13:22 Done.
+
// Statics -------------------------------------------------------------------
// Used to disable prompting the user for a directory/filename of the saved

Powered by Google App Engine
This is Rietveld 408576698