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_DOWNLOAD_FILE_PICKER_CHROMEOS_H__ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_CHROMEOS_H__ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_CHROMEOS_H__ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_CHROMEOS_H__ |
7 | 7 |
8 #include "chrome/browser/download/download_file_picker.h" | 8 #include "chrome/browser/download/download_file_picker.h" |
9 | 9 |
10 class DownloadFilePickerChromeOS : public DownloadFilePicker { | 10 class DownloadFilePickerChromeOS : public DownloadFilePicker { |
11 public: | 11 public: |
12 DownloadFilePickerChromeOS(); | 12 DownloadFilePickerChromeOS(); |
13 virtual ~DownloadFilePickerChromeOS(); | 13 virtual ~DownloadFilePickerChromeOS(); |
14 | 14 |
15 private: | 15 private: |
16 // SelectFileDialog::Listener implementation. | 16 // SelectFileDialog::Listener implementation. |
17 virtual void FileSelected(const FilePath& path, | 17 virtual void FileSelected(const FilePath& path, |
18 int index, | 18 int index, |
19 void* params) OVERRIDE; | 19 void* params) OVERRIDE; |
20 | 20 |
21 // DownloadFilePicker implementation. | 21 // DownloadFilePicker implementation. |
22 // This looks up the gdata path instead of the temporary local path. | 22 // This looks up the gdata path instead of the temporary local path. |
23 virtual void InitSuggestedPath(content::DownloadItem* item) OVERRIDE; | 23 virtual void InitSuggestedPath(content::DownloadItem* item, |
| 24 const FilePath& suggested_path) OVERRIDE; |
24 | 25 |
25 DISALLOW_COPY_AND_ASSIGN(DownloadFilePickerChromeOS); | 26 DISALLOW_COPY_AND_ASSIGN(DownloadFilePickerChromeOS); |
26 }; | 27 }; |
27 | 28 |
28 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_CHROMEOS_H__ | 29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_CHROMEOS_H__ |
OLD | NEW |