| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/download/download_manager.h" | |
| 10 #include "chrome/browser/ui/shell_dialogs.h" | 9 #include "chrome/browser/ui/shell_dialogs.h" |
| 10 #include "content/browser/download/download_manager.h" |
| 11 | 11 |
| 12 class FilePath; | 12 class FilePath; |
| 13 class TabContents; | 13 class TabContents; |
| 14 | 14 |
| 15 // Handles showing a dialog to the user to ask for the filename for a download. | 15 // Handles showing a dialog to the user to ask for the filename for a download. |
| 16 class DownloadFilePicker : public DownloadManager::Observer, | 16 class DownloadFilePicker : public DownloadManager::Observer, |
| 17 public SelectFileDialog::Listener { | 17 public SelectFileDialog::Listener { |
| 18 public: | 18 public: |
| 19 DownloadFilePicker(DownloadManager* download_manager, | 19 DownloadFilePicker(DownloadManager* download_manager, |
| 20 TabContents* tab_contents, | 20 TabContents* tab_contents, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 DownloadManager* download_manager_; | 34 DownloadManager* download_manager_; |
| 35 | 35 |
| 36 // For managing select file dialogs. | 36 // For managing select file dialogs. |
| 37 scoped_refptr<SelectFileDialog> select_file_dialog_; | 37 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(DownloadFilePicker); | 39 DISALLOW_COPY_AND_ASSIGN(DownloadFilePicker); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_H_ | 42 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_H_ |
| OLD | NEW |