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 #include "chrome/browser/download/download_file_picker.h" | 5 #include "chrome/browser/download/download_file_picker.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram_macros.h" |
8 #include "chrome/browser/download/download_prefs.h" | 8 #include "chrome/browser/download/download_prefs.h" |
9 #include "chrome/browser/platform_util.h" | 9 #include "chrome/browser/platform_util.h" |
10 #include "chrome/browser/ui/chrome_select_file_policy.h" | 10 #include "chrome/browser/ui/chrome_select_file_policy.h" |
11 #include "content/public/browser/browser_context.h" | 11 #include "content/public/browser/browser_context.h" |
12 #include "content/public/browser/download_item.h" | 12 #include "content/public/browser/download_item.h" |
13 #include "content/public/browser/download_manager.h" | 13 #include "content/public/browser/download_manager.h" |
14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
15 | 15 |
16 using content::DownloadItem; | 16 using content::DownloadItem; |
17 using content::DownloadManager; | 17 using content::DownloadManager; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Deletes |this| | 112 // Deletes |this| |
113 } | 113 } |
114 | 114 |
115 // static | 115 // static |
116 void DownloadFilePicker::ShowFilePicker(DownloadItem* item, | 116 void DownloadFilePicker::ShowFilePicker(DownloadItem* item, |
117 const base::FilePath& suggested_path, | 117 const base::FilePath& suggested_path, |
118 const FileSelectedCallback& callback) { | 118 const FileSelectedCallback& callback) { |
119 new DownloadFilePicker(item, suggested_path, callback); | 119 new DownloadFilePicker(item, suggested_path, callback); |
120 // DownloadFilePicker deletes itself. | 120 // DownloadFilePicker deletes itself. |
121 } | 121 } |
OLD | NEW |