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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/download_file_picker.h
diff --git a/chrome/browser/download/download_file_picker.h b/chrome/browser/download/download_file_picker.h
index 28f661b3131001609e567bfae9b125137c36f919..b7dc8b42f4c78cb1f277fa33b551f4cb805cb582 100644
--- a/chrome/browser/download/download_file_picker.h
+++ b/chrome/browser/download/download_file_picker.h
@@ -8,7 +8,9 @@
#include "chrome/browser/download/chrome_download_manager_delegate.h"
#include "ui/shell_dialogs/select_file_dialog.h"
+namespace base {
class FilePath;
+}
namespace content {
class DownloadItem;
@@ -24,7 +26,7 @@ class DownloadFilePicker : public ui::SelectFileDialog::Listener {
void Init(content::DownloadManager* download_manager,
content::DownloadItem* item,
- const FilePath& suggested_path,
+ const base::FilePath& suggested_path,
const ChromeDownloadManagerDelegate::FileSelectedCallback&
callback);
@@ -33,28 +35,28 @@ class DownloadFilePicker : public ui::SelectFileDialog::Listener {
// method should be overridden to set the correct suggested path to prompt the
// user.
virtual void InitSuggestedPath(content::DownloadItem* item,
- const FilePath& suggested_path);
+ const base::FilePath& suggested_path);
- void set_suggested_path(const FilePath& suggested_path) {
+ void set_suggested_path(const base::FilePath& suggested_path) {
suggested_path_ = suggested_path;
}
// Runs |file_selected_callback_| with |path| and then deletes this object.
- void OnFileSelected(const FilePath& path);
+ void OnFileSelected(const base::FilePath& path);
- void RecordFileSelected(const FilePath& path);
+ void RecordFileSelected(const base::FilePath& path);
scoped_refptr<content::DownloadManager> download_manager_;
int32 download_id_;
private:
// SelectFileDialog::Listener implementation.
- virtual void FileSelected(const FilePath& path,
+ virtual void FileSelected(const base::FilePath& path,
int index,
void* params) OVERRIDE;
virtual void FileSelectionCanceled(void* params) OVERRIDE;
- FilePath suggested_path_;
+ base::FilePath suggested_path_;
ChromeDownloadManagerDelegate::FileSelectedCallback file_selected_callback_;
« no previous file with comments | « chrome/browser/diagnostics/diagnostics_test.h ('k') | chrome/browser/download/download_path_reservation_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698