| 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_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/public/browser/download_manager_delegate.h" | 9 #include "content/public/browser/download_manager_delegate.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "ui/base/dialogs/select_file_dialog.h" | 11 #include "ui/base/dialogs/select_file_dialog.h" |
| 12 | 12 |
| 13 namespace gdata { | |
| 14 class GDataFileSystem; | |
| 15 } | |
| 16 | |
| 17 namespace ui { | 13 namespace ui { |
| 18 struct SelectedFileInfo; | 14 struct SelectedFileInfo; |
| 19 } | 15 } |
| 20 | 16 |
| 21 // Handles showing a dialog to the user to ask for the filename to save a page | 17 // Handles showing a dialog to the user to ask for the filename to save a page |
| 22 // on ChromeOS. | 18 // on ChromeOS. |
| 23 class SavePackageFilePickerChromeOS : public ui::SelectFileDialog::Listener, | 19 class SavePackageFilePickerChromeOS : public ui::SelectFileDialog::Listener, |
| 24 public content::WebContentsObserver { | 20 public content::WebContentsObserver { |
| 25 public: | 21 public: |
| 26 SavePackageFilePickerChromeOS( | 22 SavePackageFilePickerChromeOS( |
| (...skipping 21 matching lines...) Expand all Loading... |
| 48 content::SavePackagePathPickedCallback callback_; | 44 content::SavePackagePathPickedCallback callback_; |
| 49 | 45 |
| 50 // For managing select file dialogs. | 46 // For managing select file dialogs. |
| 51 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 47 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |
| 52 FilePath selected_path_; | 48 FilePath selected_path_; |
| 53 | 49 |
| 54 DISALLOW_COPY_AND_ASSIGN(SavePackageFilePickerChromeOS); | 50 DISALLOW_COPY_AND_ASSIGN(SavePackageFilePickerChromeOS); |
| 55 }; | 51 }; |
| 56 | 52 |
| 57 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_CHROMEOS_H_ | 53 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_CHROMEOS_H_ |
| OLD | NEW |