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

Side by Side Diff: chrome/browser/download/save_package_file_picker.h

Issue 10820034: Remove redirection header and add "ui::" before all SelectFileDialog usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reuploading for different try run. Created 8 years, 4 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
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_SAVE_PACKAGE_FILE_PICKER_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_H_
6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_H_ 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "chrome/browser/ui/select_file_dialog.h"
10 #include "content/public/browser/download_manager_delegate.h" 9 #include "content/public/browser/download_manager_delegate.h"
10 #include "ui/base/dialogs/select_file_dialog.h"
11 11
12 class DownloadPrefs; 12 class DownloadPrefs;
13 13
14 // Handles showing a dialog to the user to ask for the filename to save a page. 14 // Handles showing a dialog to the user to ask for the filename to save a page.
15 class SavePackageFilePicker : public SelectFileDialog::Listener { 15 class SavePackageFilePicker : public ui::SelectFileDialog::Listener {
16 public: 16 public:
17 SavePackageFilePicker(content::WebContents* web_contents, 17 SavePackageFilePicker(content::WebContents* web_contents,
18 const FilePath& suggested_path, 18 const FilePath& suggested_path,
19 const FilePath::StringType& default_extension, 19 const FilePath::StringType& default_extension,
20 bool can_save_as_complete, 20 bool can_save_as_complete,
21 DownloadPrefs* download_prefs, 21 DownloadPrefs* download_prefs,
22 const content::SavePackagePathPickedCallback& callback); 22 const content::SavePackagePathPickedCallback& callback);
23 virtual ~SavePackageFilePicker(); 23 virtual ~SavePackageFilePicker();
24 24
25 // Used to disable prompting the user for a directory/filename of the saved 25 // Used to disable prompting the user for a directory/filename of the saved
(...skipping 11 matching lines...) Expand all
37 37
38 // Used to look up the renderer process for this request to get the context. 38 // Used to look up the renderer process for this request to get the context.
39 int render_process_id_; 39 int render_process_id_;
40 40
41 // Whether the web page can be saved as a complete HTML file. 41 // Whether the web page can be saved as a complete HTML file.
42 bool can_save_as_complete_; 42 bool can_save_as_complete_;
43 43
44 content::SavePackagePathPickedCallback callback_; 44 content::SavePackagePathPickedCallback callback_;
45 45
46 // For managing select file dialogs. 46 // For managing select file dialogs.
47 scoped_refptr<SelectFileDialog> select_file_dialog_; 47 scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(SavePackageFilePicker); 49 DISALLOW_COPY_AND_ASSIGN(SavePackageFilePicker);
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_H_ 52 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_file_picker.cc ('k') | chrome/browser/download/save_package_file_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698