OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 // Helper function for download views to use when acting as a drag source for a | 125 // Helper function for download views to use when acting as a drag source for a |
126 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view| | 126 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view| |
127 // is only required for Mac OS X, elsewhere it can be NULL. | 127 // is only required for Mac OS X, elsewhere it can be NULL. |
128 void DragDownload(const DownloadItem* download, | 128 void DragDownload(const DownloadItem* download, |
129 SkBitmap* icon, | 129 SkBitmap* icon, |
130 gfx::NativeView view); | 130 gfx::NativeView view); |
131 | 131 |
132 // Executable file support ----------------------------------------------------- | 132 // Executable file support ----------------------------------------------------- |
133 | 133 |
134 // Copy all executable file extensions. | 134 // Determine if the specified extension is an executable extension. |
135 void InitializeExeTypes(std::set<std::string>* exe_extensions); | 135 bool IsExecutableExtension(const std::string& extension); |
136 | 136 |
137 } // namespace download_util | 137 } // namespace download_util |
138 | 138 |
139 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 139 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
OLD | NEW |