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

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

Issue 351029: Support dragging a virtual file out of the browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | chrome/browser/download/drag_download_file_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698