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

Unified Diff: content/browser/download/base_file.h

Issue 10905284: Use the user's preferred downloads directory for creating the initial download file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows path check Created 8 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 | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file.h
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h
index 7ada03c7c4c9a0e7ec016c775aeb48531f713bbf..885c79df738aa624318c59ecf14be289f245d2f3 100644
--- a/content/browser/download/base_file.h
+++ b/content/browser/download/base_file.h
@@ -40,7 +40,11 @@ class CONTENT_EXPORT BaseFile {
virtual ~BaseFile();
// Returns net::OK on success, or a network error code on failure.
- net::Error Initialize();
+ // |default_directory| specifies the directory to create the temporary file in
+ // if |full_path()| is empty. If |default_directory| and |full_path()| are
+ // empty, then a temporary file will be created in the default download
+ // location as determined by ContentBrowserClient.
+ net::Error Initialize(const FilePath& default_directory);
// Write a new chunk of data to the file.
// Returns net::OK on success (all bytes written to the file),
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698