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

Side by Side Diff: chrome/browser/download/chrome_download_manager_delegate.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void UpdateItemInPersistentStore( 79 virtual void UpdateItemInPersistentStore(
80 content::DownloadItem* item) OVERRIDE; 80 content::DownloadItem* item) OVERRIDE;
81 virtual void UpdatePathForItemInPersistentStore( 81 virtual void UpdatePathForItemInPersistentStore(
82 content::DownloadItem* item, 82 content::DownloadItem* item,
83 const FilePath& new_path) OVERRIDE; 83 const FilePath& new_path) OVERRIDE;
84 virtual void RemoveItemFromPersistentStore( 84 virtual void RemoveItemFromPersistentStore(
85 content::DownloadItem* item) OVERRIDE; 85 content::DownloadItem* item) OVERRIDE;
86 virtual void RemoveItemsFromPersistentStoreBetween( 86 virtual void RemoveItemsFromPersistentStoreBetween(
87 base::Time remove_begin, 87 base::Time remove_begin,
88 base::Time remove_end) OVERRIDE; 88 base::Time remove_end) OVERRIDE;
89 virtual void GetSaveDir(content::WebContents* web_contents, 89 virtual void GetSaveDir(content::BrowserContext* browser_context,
90 FilePath* website_save_dir, 90 FilePath* website_save_dir,
91 FilePath* download_save_dir, 91 FilePath* download_save_dir,
92 bool* skip_dir_check) OVERRIDE; 92 bool* skip_dir_check) OVERRIDE;
93 virtual void ChooseSavePath( 93 virtual void ChooseSavePath(
94 content::WebContents* web_contents, 94 content::WebContents* web_contents,
95 const FilePath& suggested_path, 95 const FilePath& suggested_path,
96 const FilePath::StringType& default_extension, 96 const FilePath::StringType& default_extension,
97 bool can_save_as_complete, 97 bool can_save_as_complete,
98 const content::SavePackagePathPickedCallback& callback) OVERRIDE; 98 const content::SavePackagePathPickedCallback& callback) OVERRIDE;
99 99
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 #endif 257 #endif
258 258
259 // The directory most recently chosen by the user in response to a Save As 259 // The directory most recently chosen by the user in response to a Save As
260 // dialog for a regular download. 260 // dialog for a regular download.
261 FilePath last_download_path_; 261 FilePath last_download_path_;
262 262
263 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 263 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
264 }; 264 };
265 265
266 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 266 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698