OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Download utilities. | 5 // Download utilities. |
6 | 6 |
7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
17 | 17 |
18 #if defined(TOOLKIT_VIEWS) | 18 #if defined(TOOLKIT_VIEWS) |
19 #include "views/view.h" | 19 #include "views/view.h" |
20 #endif | 20 #endif |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class Canvas; | 23 class Canvas; |
24 } | 24 } |
25 | 25 |
26 class BaseDownloadItemModel; | 26 class BaseDownloadItemModel; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 // Returns true if this download should show the "dangerous file" warning. | 210 // Returns true if this download should show the "dangerous file" warning. |
211 // Various factors are considered, such as the type of the file, whether a | 211 // Various factors are considered, such as the type of the file, whether a |
212 // user action initiated the download, and whether the user has explictly | 212 // user action initiated the download, and whether the user has explictly |
213 // marked the file type as "auto open". | 213 // marked the file type as "auto open". |
214 bool IsDangerous(DownloadCreateInfo* info, Profile* profile, bool auto_open); | 214 bool IsDangerous(DownloadCreateInfo* info, Profile* profile, bool auto_open); |
215 | 215 |
216 } // namespace download_util | 216 } // namespace download_util |
217 | 217 |
218 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 218 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
OLD | NEW |