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 |