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

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

Issue 12850002: Move download filename determintion into a separate class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
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_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 namespace ui { 10 namespace ui {
11 struct SelectedFileInfo; 11 struct SelectedFileInfo;
12 } 12 }
13 13
14 class DownloadFilePickerChromeOS : public DownloadFilePicker { 14 class DownloadFilePickerChromeOS : public DownloadFilePicker {
15 public: 15 private:
16 DownloadFilePickerChromeOS(); 16 DownloadFilePickerChromeOS();
17 virtual ~DownloadFilePickerChromeOS(); 17 virtual ~DownloadFilePickerChromeOS();
18 18
19 private:
20 // SelectFileDialog::Listener implementation. 19 // SelectFileDialog::Listener implementation.
21 virtual void FileSelected(const base::FilePath& path, 20 virtual void FileSelected(const base::FilePath& path,
22 int index, 21 int index,
23 void* params) OVERRIDE; 22 void* params) OVERRIDE;
24 virtual void FileSelectedWithExtraInfo( 23 virtual void FileSelectedWithExtraInfo(
25 const ui::SelectedFileInfo& file_info, 24 const ui::SelectedFileInfo& file_info,
26 int index, 25 int index,
27 void* params) OVERRIDE; 26 void* params) OVERRIDE;
28 27
29 // DownloadFilePicker implementation. 28 // DownloadFilePicker implementation.
30 // This looks up the gdata path instead of the temporary local path. 29 // This looks up the gdata path instead of the temporary local path.
31 virtual void InitSuggestedPath(content::DownloadItem* item, 30 virtual void InitSuggestedPath(content::DownloadItem* item,
32 const base::FilePath& suggested_path) OVERRIDE; 31 const base::FilePath& suggested_path) OVERRIDE;
33 32
34 DISALLOW_COPY_AND_ASSIGN(DownloadFilePickerChromeOS); 33 DISALLOW_COPY_AND_ASSIGN(DownloadFilePickerChromeOS);
35 }; 34 };
36 35
37 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_CHROMEOS_H__ 36 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_PICKER_CHROMEOS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698