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

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

Issue 219017: Create the download folder if it doesn't exist. That is, the actual download ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unit tests Created 11 years, 3 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 | « no previous file | 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 27115)
+++ chrome/browser/download/save_file_manager.h (working copy)
@@ -58,6 +58,8 @@
#ifndef CHROME_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H__
#define CHROME_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H__
+#include <string>
+
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/hash_tables.h"
@@ -122,6 +124,9 @@
void OnShowSavedFileInShell(const FilePath full_path);
#endif
+ // Helper to create the download directory.
+ void CreateDownloadDirectory(FilePath save_dir,
+ SavePackage* save_package);
// Helper function for deleting specified file.
void DeleteDirectoryOrFile(const FilePath& full_path, bool is_dir);
@@ -262,7 +267,7 @@
typedef base::hash_map<int, StartingRequestsMap> TabToStartingRequestsMap;
TabToStartingRequestsMap tab_starting_requests_;
- DISALLOW_EVIL_CONSTRUCTORS(SaveFileManager);
+ DISALLOW_COPY_AND_ASSIGN(SaveFileManager);
};
#endif // CHROME_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H__
« no previous file with comments | « no previous file | chrome/browser/download/save_file_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698