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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
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_DOWNLOAD_FILE_PICKER_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/shell_dialogs/select_file_dialog.h" 10 #include "ui/shell_dialogs/select_file_dialog.h"
11 11
12 namespace base { 12 namespace base {
13 class FilePath; 13 class FilePath;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 class DownloadItem; 17 class DownloadItem;
18 class DownloadManager;
19 class WebContents;
20 } 18 }
21 19
22 // Handles showing a dialog to the user to ask for the filename for a download. 20 // Handles showing a dialog to the user to ask for the filename for a download.
23 class DownloadFilePicker : public ui::SelectFileDialog::Listener { 21 class DownloadFilePicker : public ui::SelectFileDialog::Listener {
24 public: 22 public:
25 // Callback used to pass the user selection back to the owner of this 23 // Callback used to pass the user selection back to the owner of this
26 // object. 24 // object.
27 // |virtual_path|: The path chosen by the user. If the user cancels the file 25 // |virtual_path|: The path chosen by the user. If the user cancels the file
28 // selection, then this parameter will be the empty path. On Chrome OS, 26 // selection, then this parameter will be the empty path. On Chrome OS,
29 // this path may contain virtual mount points if the user chose a virtual 27 // this path may contain virtual mount points if the user chose a virtual
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; 62 scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
65 63
66 // True if UMA regarding on the result of the file selection should be 64 // True if UMA regarding on the result of the file selection should be
67 // recorded. 65 // recorded.
68 bool should_record_file_picker_result_; 66 bool should_record_file_picker_result_;
69 67
70 DISALLOW_COPY_AND_ASSIGN(DownloadFilePicker); 68 DISALLOW_COPY_AND_ASSIGN(DownloadFilePicker);
71 }; 69 };
72 70
73 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_H_ 71 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_danger_prompt.h ('k') | chrome/browser/download/download_item_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698