OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "content/public/browser/download_manager_delegate.h" | 12 #include "content/public/browser/download_manager_delegate.h" |
12 #include "content/public/browser/save_page_type.h" | 13 #include "content/public/browser/save_page_type.h" |
13 #include "ui/shell_dialogs/select_file_dialog.h" | 14 #include "ui/shell_dialogs/select_file_dialog.h" |
14 | 15 |
15 class DownloadPrefs; | 16 class DownloadPrefs; |
16 | 17 |
17 // Handles showing a dialog to the user to ask for the filename to save a page. | 18 // Handles showing a dialog to the user to ask for the filename to save a page. |
18 class SavePackageFilePicker : public ui::SelectFileDialog::Listener { | 19 class SavePackageFilePicker : public ui::SelectFileDialog::Listener { |
19 public: | 20 public: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 52 |
52 std::vector<content::SavePageType> save_types_; | 53 std::vector<content::SavePageType> save_types_; |
53 | 54 |
54 // For managing select file dialogs. | 55 // For managing select file dialogs. |
55 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 56 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(SavePackageFilePicker); | 58 DISALLOW_COPY_AND_ASSIGN(SavePackageFilePicker); |
58 }; | 59 }; |
59 | 60 |
60 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_H_ | 61 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_H_ |
OLD | NEW |