OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/win/atlcheck.h" |
16 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
17 | 18 |
18 #if defined(TOOLKIT_VIEWS) | 19 #if defined(TOOLKIT_VIEWS) |
19 #include "views/view.h" | 20 #include "views/view.h" |
20 #endif | 21 #endif |
21 | 22 |
22 namespace gfx { | 23 namespace gfx { |
23 class Canvas; | 24 class Canvas; |
24 class Image; | 25 class Image; |
25 } | 26 } |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 215 |
215 // Returns true if this download should show the "dangerous file" warning. | 216 // Returns true if this download should show the "dangerous file" warning. |
216 // Various factors are considered, such as the type of the file, whether a | 217 // Various factors are considered, such as the type of the file, whether a |
217 // user action initiated the download, and whether the user has explictly | 218 // user action initiated the download, and whether the user has explictly |
218 // marked the file type as "auto open". | 219 // marked the file type as "auto open". |
219 bool IsDangerous(DownloadCreateInfo* info, Profile* profile, bool auto_open); | 220 bool IsDangerous(DownloadCreateInfo* info, Profile* profile, bool auto_open); |
220 | 221 |
221 } // namespace download_util | 222 } // namespace download_util |
222 | 223 |
223 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 224 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
OLD | NEW |